n = int(input()) S = set() for i in range(n + 1): for j in range(n + 1): S.add(1 * 2**i * 5**j) print(*sorted(S), sep="\n")