#include <iostream> using namespace std; int main() { int n; cin >> n; int kvadrat = n * n; int kub = n * n * n; cout << kvadrat << endl; cout << kub << endl; return 0; }