while 1:a,b=map(int,raw_input().split());print(a+b*b/a+2)/4