Problem:
X Cubic

Write a program which calculates the cube of a given integer x.

Input

An integer x is given in a line.

Output

Print the cube of x in a line.

Constraints

1 ≤ x ≤ 100

Sample Input 1

2

Sample Output 1

8

Sample Input 2

3

Sample Output 2

27

Solution in JavaScript (judge verdict: Accepted)


(stdin => {

  const identity = v => v
  const always   = v => _ => v
  const join     = sep => array => array.join(sep)
  const split    = sep => str => str.split(sep)
  const print  = fun => (f, v) => fun(f(v))

  // Define Function
  const power = m => n => Math.pow(n, m)

  // Declare Variable
  const inputs = stdin.toString().trim().split('\n')
  const n = parseInt(inputs[0], 10)

  // Main
  const result = power(3)(n)

  // Display
  const display = print(console.log)
  display(identity, result)

})(require('fs').readFileSync('/dev/stdin', 'utf8'))