import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) two = [2**i for i in range(N+1)] five = [5**i for i in range(N+1)] div = set(x*y for x in two for y in five) answer = sorted(div) print('\n'.join(map(str, answer)))