while 1:A,B=map(int,raw_input().split());print(A*A/B-~B)/2