n=int(input("Enetr the value of number of values"))
a=int(input("Enter the value of number of series"))
d=int(input("Enter the value of difference"))
l=(n*d)+a-1
sum=0
sum=((a+l)*n)/2
print("sum:",int(sum))
