import Foundation
var X: String = readLine()!
var x: Int = Int(X)!
var flag = false
for i in -200...200{
  for j in -200...200{
    if pow(Double(i),5)-pow(Double(j),5)==x{
      flag = true
      print(i,j)
      break
    }
  }
  if flag{
    break
  }
}