#include using namespace std; int main() { double W, Z, B; cin >> W >> Z >> B; cout << W + Z + W * B + Z * B << endl; }