#include #include using namespace std; long long int sumOfGroup(long int k) { // Return the sum of the elements of the k'th group. long long int s=1; for(int i=0;i<3;i++) s*=k; return(s); } int main() { long int k; cin >> k; long long int answer = sumOfGroup(k); cout << answer << endl; return 0; }