Time limit
2s
Memory limit
128 MB
Given two integers M and N, consider every integer from M through N inclusive. Read each number one digit at a time in English, then sort the numbers by the lexicographic order of those digit-word strings. Under this rule, 79 is read as seven nine, and 80 as eight zero, so 80 comes before 79 by this ordering even though it is larger.
Print the sorted integers.
The first line contains two integers M and N separated by a space. (1 ≤ M ≤ N ≤ 99)
Print the integers from M through N sorted by the required order, with up to 10 integers per line separated by spaces.