#include <stdio.h>
#include <math.h>

int main(void){
    int X,A,B,N;
    double Adot;
    scanf("%d",&X);

    
    for(B=-100;B<100;B++){
        N=X+pow(B,5.0);
        Adot=pow(N,0.2);
        A=Adot;
        if(ceil(Adot)==floor(Adot)){
            printf("%d %d",A,B);
            break;
        }
    }
    return 0;


}