Types: n: int, s: str
Ranges: 1 ≤ n ≤ 10,000, s: a string of length n where each character is either a digit ('0' to '9') or 'u', and s always ends with 'u'
Addtl Info: The input consists of at most 50 datasets, and the end of the input is indicated by a line with a zero.