https://www.acmicpc.net/problem/16673
c,k,p=map(int,input().split()) sum=0 for i in range(1,c+1): sum+=k*i+p*i*i print(sum)