a,b = map(int, input().split()) if a is 4 and b is 1: a += 1 print(a+b)