n=int(input()) y=[(2**i)*(5**j) for i in range(n+1) for j in range(n+1)] y.sort() for i in y: print(i)