#include <iostream>
using namespace std;
int main() {
int n,P,S;
while(cin >> n){
P = 4*n;
S = n*n;
cout << P << " " << S <<"\n";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbixQLFM7Cgl3aGlsZShjaW4gPj4gbil7CgkJUCA9IDQqbjsKCQlTID0gbipuOwoJCWNvdXQgPDwgUCA8PCAiICIgPDwgUyA8PCJcbiI7Cgl9CglyZXR1cm4gMDsKfQ==