let x = Int(readLine()!)!

let nums = Array(-99...99).map { n -> (Int, Int) in
    var r = 1
    for _ in 0..<5 {
        r *= n
    }
    return (n, r)
}

root: for a in nums {
    for b in nums {
        if a.1 - b.1 == x {
            print("\(a.0) \(b.0)")
            break root
        }
    }
}
