#include using namespace std; int main() { int x; cin >> x; cout << x * x << endl; cout << x * x * x << endl; return 0; }