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