class X{static void Main(){for(int a=0,b=0;a++<500;)System.Console.WriteLine(b+=a&-a);}}