A rational number is a string containing pair of integers U UI separated by blanks. U is numerator and UI is denominator of the rational number (U/UI). U and UI are relatively prime to each other and UI>0. The number zero is represented as 0 1.