#include <iostream>
using namespace std;
long long int calculate_area(long long int N, long long int K, long long int L) {
// The area of the union of the squares is equal to the area of the largest square
long long int area = (N * K + L) * (N * K + L);
return area;
}
int main() {
long long int N, K, L;
cin >> N >> K >> L;
long long int area = calculate_area(N, K, L);
cout << area << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKbG9uZyBsb25nIGludCBjYWxjdWxhdGVfYXJlYShsb25nIGxvbmcgaW50IE4sIGxvbmcgbG9uZyBpbnQgSywgbG9uZyBsb25nIGludCBMKSB7CiAgICAvLyBUaGUgYXJlYSBvZiB0aGUgdW5pb24gb2YgdGhlIHNxdWFyZXMgaXMgZXF1YWwgdG8gdGhlIGFyZWEgb2YgdGhlIGxhcmdlc3Qgc3F1YXJlCiAgICBsb25nIGxvbmcgaW50IGFyZWEgPSAoTiAqIEsgKyBMKSAqIChOICogSyArIEwpOwogICAgcmV0dXJuIGFyZWE7Cn0KCmludCBtYWluKCkgewogICAgbG9uZyBsb25nIGludCBOLCBLLCBMOwogICAgY2luID4+IE4gPj4gSyA+PiBMOwoKICAgIGxvbmcgbG9uZyBpbnQgYXJlYSA9IGNhbGN1bGF0ZV9hcmVhKE4sIEssIEwpOwogICAgY291dCA8PCBhcmVhIDw8IGVuZGw7CiAgICByZXR1cm4gMDsKfQ==