#include <iostream>
#include <cstring>
using namespace std;
const int TEN = 10;
int strToNumber(char s[9]) {
int num = 0;
int i = 0;
while (s[i] != '\0') {
num = num * TEN + (s[i] - '0');
++i;
}
return num * num;
}
int main() {
char nr[9];
cin.getline(nr, 9);
cout << strToNumber(nr);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNvbnN0IGludCBURU4gPSAxMDsKCmludCBzdHJUb051bWJlcihjaGFyIHNbOV0pIHsKCWludCBudW0gPSAwOwoJaW50IGkgPSAwOwoJd2hpbGUgKHNbaV0gIT0gJ1wwJykgewoJCW51bSA9IG51bSAqIFRFTiArIChzW2ldIC0gJzAnKTsKCQkrK2k7Cgl9CglyZXR1cm4gbnVtICogbnVtOwp9CgppbnQgbWFpbigpIHsKCWNoYXIgbnJbOV07CgljaW4uZ2V0bGluZShuciwgOSk7Cgljb3V0IDw8IHN0clRvTnVtYmVyKG5yKTsKfQ==