Types: n: int, s: str
Ranges: 1 ≤ n ≤ 10,000, s consists of {'0'-'9', 'u'}, ends with 'u'
Addtl Info: Input terminates with a line containing zero