import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()) { int key = in.nextInt(); String s = Integer.toBinaryString(key); String[] split = s.split("0"); int count[] = new int[150]; for (int i = 0; i < spl...