exec'''from itertools import*;I,F,Q=input(),[],2while len(F)<I:F=[g for g in range(1,Q)if any(i==i[::-1]*(i[0]>'0')for i in permutations(`g`))];Q+=1print F[-1];'''*15
1 2 3 4 5 6 7 8 9 10 42 100 128 256 270
1 2 3 4 5 6 7 8 9 11 181 404 511 994 1166
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!