N = int(input()) ls = [] for i in range(N+1): for j in range(N+1): ls.append(2**i*5**j) ls.sort() print(*ls,sep='\n')