N = int(input()) while True: N = N * (pow(10, len(str(N))) + 1) if N >= 10**9: break print(N)