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

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

To run:
   java -jar methcall.jar 1000000
*/


import ackermann; // reuse toSingleInt


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

   Toggle toggle = new Toggle();
   for(var i=1; i= t.toggleTrigger){
      t.state = !t.state;
      t.count = 0;
   }
   return t; 
}