# -*- coding utf-8 -*-

x = int(eval(input()))

print((x**3))
# -*- coding: utf-8 -*-



x = int(eval(input()))



xcubic = x * x * x

print(xcubic)

# -*- coding utf-8 -*-
x = int(eval(input()))
print((x**3))

# -*- coding: utf-8 -*-
x = int(eval(input()))
xcubic = x * x * x
print(xcubic)

-# -*- coding utf-8 -*- +# -*- coding: utf-8 -*- -print((x**3)) +xcubic = x * x * x +print(xcubic)