public class a {
static int zaehlen = 0;
public static void main(String args[]) {
System.out.println(aa(6,3));
}
static int aa(int x, int y) {
if (x <= 0 || y < 0) {
return x - y + 2;
}
if (x % 2 == 0) {
return aa(x / 2, y) + aa(x, y - 1);
}
return aa(x - 1, y - 2);
}
}