N = int(input()) while N < 10 ** 9: v = 1 while v < N: v *= 10 N = (v + 1) * N print(N)