for x in sorted(set((i/19)**(i%19+2)for i in range(9999)))[2:513]:print x