a[' '];main(i){for(;~scanf("%d",a)&&(*a=++a[1+*a])||a[i]--&&printf("%d\n"+2*!i,i-1)||(i+=2)<1e5||(i=~*a););}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page