#coding;utf-8 def main(): N = int(input()) l = [] for i in range(N+1): for j in range(N+1): l.append(2**i * 5**j) l.sort() for k in range(len(l)): print(l[k]) if __name__ == '__main__': main()