#yuki677 n=int(raw_input()) res=[] for i in xrange(n+1): for j in xrange(n+1): res.append(2**i*5**j) res.sort() for i in xrange(len(res)): print res[i]