import sys input=lambda:sys.stdin.readline().rstrip() A,B=map(int,input().split()) for i in range(100000): if i**2>(A**2+B**2)*4: print(i) sys.exit()