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