x,y=map(int,input().split()) d=x**2+y**2 i=1 while True: if i**2/4>d: print(i) break i+=1