def main(): import sys input = sys.stdin.readline N = int(input()) ans = [] for i in range(N+1): for j in range(N+1): ans.append((2**i) * (5**j)) ans.sort() print('\n'.join(map(str, ans))) if __name__ == '__main__': main()