import java.util.*; public class breakingsticks { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[]=new int[n]; for(int i=0;i1) { z=z/2; c++; } for(int i=c;i>=0;i--) { if(x%(Math.pow(2,i))==0) { d=i; } } count=count+(int)Math.pow(2,d); fun2((int)Math.pow(2,d)); } return count; } // number is prime or not public static boolean isprime(int y) { boolean flag=false; for(int i=2;i