#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> W >> Z >> B; int ans=W+Z; ans+=(int)(B*ans); cout << ans << endl; return 0; }