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