Răspuns :

#include <iostream>

using namespace std;

int main()

{ unsigned n;

cin>>n;

cout<<n*n<<' '<<n*n*n;

return 0;

}