public class test3 {
public static void main(String[] args) {
System.out.println(monkey(1,10));
}
public static int monkey( int sum,int day){
if(day==1){
return sum;
}else {
day--;
sum=(sum+1)*2;
}
return monkey(sum,day);
}
}