Identify rational number and Irrational numbers based on decimal expansion