#include using namespace std; int main(void){ float w, z, b; cin >> w >> z >> b; float x, y; x = w + w * b; y = z + z * b; int ans = x + y; cout << ans << endl; }