for _ in sorted(set((_/16+2)**(_%16+2)for _ in range(7136)))[:511]:print _