/** * Created by Singh on 04-01-2015. */ import java.util.*; public class prog { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int count=0; while(a>0) { if(a%2==0) count++; a=a/2; } System.out.println(count); } }