#include <bits/stdc++.h>

using namespace std;

long long sumOfGroup(long long k) 
{
    return k*k*k;
    // Return the sum of the elements of the k'th group.
}

int main() {
    long long k;
    cin >> k;
    long long answer = sumOfGroup(k);
    cout << answer << endl;
    return 0;
}