using System;
public class Program
{
public static void Main()
int n,a,count=0,j,b=0;
Console.WriteLine("enter the number below 1024");
n=Convert.ToInt32(Console.ReadLine());
a=n;
while(a>0)
a=a/2;
b++;
}
int []x=new int[b];
for(j=0;j<=b-1;j++)
x[j]=n%2;
n=n/2;
if(x[j]==1)
count++;
Console.WriteLine("no of 1s in the number={0}",count);