#include <iostream>
using namespace std;
int main() {
int n, c2, c1, s;
cin >> n;
c2 = n % 10;
c1 = n / 10;
cout << (c2 + c1) * (c2 + c1) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgYzIsIGMxLCBzOwoJY2luID4+IG47CgljMiA9IG4gJSAxMDsKCWMxID0gbiAvIDEwOwoJY291dCA8PCAoYzIgKyBjMSkgKiAoYzIgKyBjMSkgPDwgZW5kbDsKCXJldHVybiAwOwp9