A,B=map(int,input().split()) X=[] for _ in range(A):X.append(1) for _ in range(B):X.append(1) print(sum(X))