#include using namespace std; int main() { int a, b, c, zbir = 0; cin >> a >> b >> c; c *= c; zbir = a + b + c; cout << zbir << endl; return 0; }