for i in sorted(set((n/16)**(n%16+2)for n in range(7153)))[2:513]:print i