enum N{N;System z;int c;{try{for(;c>=0;z.out.write(c>10?51-c%2+c%6/5*2:10))c=z.in.read();}catch(Exception e){}}}