/* The Great Win32 Language Shootout http://dada.perl.it/shootout/ 
   contributed by Isaac Gouy (Nice novice)

To compile:	
   nicec --sourcepath=.. -d=. -a except.jar except

To run:
   java -jar except.jar 20000
*/


import ackermann; // reuse toSingleInt


void main(String[] args){
   let n = toSingleInt(args);

   for(var i=0; i