#include using namespace std; int main() { int l; cin >> l; cout << l * l * 6 << " " << l * l * l; return 0; }