function Main(input) {
    var X = parseInt(input[0], 10);
    var candidateA = 1;

    while(!Number.isInteger(Math.abs(candidateA ** 5 - X) ** 0.2)) {
        candidateA++;
    }

    console.log(`${candidateA} ${(candidateA ** 5 - X) < 0 ? '-' : ''}${Math.abs(candidateA ** 5 - X) ** 0.2}`);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));