Problem B. Дроби-1
Input file name: standard input
Output file name: standard output
Time limit: 3 s
Memory limit: 128 MB