求解,看看哪里出错啦

def A(x,y):
if x==0:
return y+1
if x>0 and y==0:
return A(x-1,1)
x,y=map(int,input().split())
print(A(x,y))

阿克曼函数 没写全

def A(x,y):
    if x==0:
        return y+1
    if x>0 and y==0:
        return A(x-1,1)
    if x>0 and y>0:
        return A(x-1,A(x,y-1))
x,y=map(int,input().split())
print(A(x,y))