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