#include #define rep(i, a, n) for(int i = a; i < (n); i++) using namespace std; using ll = long long; using P = pair; const int INF = 1001001001; const ll LINF = 1001002003004005006ll; //const int mod = 1000000007; //const int mod = 998244353; int main() { double w, z, b; cin >> w >> z >> b; double ans = 0; ans += w + z + b*(w + z); cout << (int)ans << endl; return 0; }