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