i=input W=int(i()) for x in range(int(i()),1,-1):W-=int(W/(x*x)) print(W)