import Numeric main=mapM(putStrLn.(\n->showIntAtBase n((['0'..'9']++['A'..'Z'])!!)257""))[2..36]