Execution time limit is 1 second Runtime memory usage limit is 128 megabytes Find the value of the function
f(x,y)=⎩⎨⎧1,x≤0 or y≤0f(x−1,y)+f(x,y−1)+1,x≤yf(x,y/2)+2,x>y Input
Two integers x,y (0≤x,y≤25).
Output
Print the value of the function f(x,y).
Examples