a='' d=int('a4upqtbul2aq9s9na80f3nekhorhqf0yoacestxu67j4',36) while d:a+='10 '[d%3];d/=3 print a