from math import ceil XP, YP = map(int, input().split()) print(ceil((XP * XP + YP * YP) ** 0.5))