a,b=(int(i) for i in input().split()) n=[] while a>0: n.append(1) a-=1 while b>0: n.append(1) b-=1 print(len(n))