b=2 exec"v=257;o=''\nwhile v:o=chr(48+v%b+(v%b>9)*7)+o;v/=b\nprint o;b+=1;"*35