s = input() n = len(s) assert 1 <= n <= 200000 for c in s: assert 1 <= int(c) <= 9