int main(){while(int x=(int)Stdio.stdin.gets())write(x*x*x*x+"\n");}