#include #include #include #include #include using namespace std; int main() { long long int t,r; int a,b; cin>>a>>b>>t; r=((0.5)*a+(0.5)*b)*t; cout<