a[9];main(m){for(;gets(a);)printf("%s-%d\n",a," 2,:4>84<62:6>860:4>82<62"[*a%6*3+m++]/2);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page