zt=int(input());q=1;qt=1;qty=0;zq=0 for _ in range(zt): if qty<=qt: qty+=1 zq+=q if qty>qt: qty=1 qt+=1 q+=1 zq+=q print(zq)