a,b = map(int,input().split()) s = a + b if(a == b): print(s) elif(a>b): print(s-(a-b)) else: print(s-(b-a))