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