#include #define ll long long using namespace std; int main(){ float n, m,a,b,c; cin >> n >> m >> a; b = n * a; c = m * a; cout << n + m + b + c << endl; }