Class Main
    Public Shared Sub Main()
    Dim X As long = Console.ReadLine()
    dim A,B as integer
    for A = -120 to 120
    for B = -120 to 120
    if Math.Pow(A,5) - Math.Pow(B,5) = X then
      Console.WriteLine(A & " " & B)
      exit sub
    end if
    next B
  next A
   End Sub
End Class
