/* package whatever; // don't place package name! */
 
import java.util.*;
import java.lang.*;
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	interface A{
		int a(int s);
	}
 
	public static void main (String[] args) throws java.lang.Exception
	{
		A a = s->{int c=0;for(;s!=0;c++)s&=s-1;return c;};
 
		System.out.println(a.a(1337));
	}
}