N = int(input()) L = len(str(N)) while L <= 10: N = N * 10**L + N L *= 2 print(N)