
(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'))
