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

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

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


import methcall; // reuse Toggle & NToggle & toSingleInt


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

   Toggle toggle = new Toggle();
   for(var i=0; i<5; i++) println( toggle.activate().value() );
   for(var i=0; i