class M{static void Main(){for(int i=1,j=2,k=0;j<152;k=k<2?i=i%2<1?i/2:i+j:j%k<1?j++:k-1)if(k<2)System.Console.WriteLine(i);}}