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