enum A{A;int a[]=new int[105],i;{for(;i==i;)System.out.println(a[i]=3*a[i/2]+i++%2);}}