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