#include<bits/stdc++.h> using namespace std; long long a,b,c; signed main() { cin>>a>>b>>c; long long d=abs(b-a),n=a*c; cout<<c*(a+n)/2; return 0; }