#include<math.h>
int main()
{
    int a,b,x,j;
    scanf("%d",&x);
    if(x%2==1)
    {
    b=-1;
    j=x-1;
    a=pow(j,0.2);
    }
    else
    {
    b=-2;
    j=x-2;
    a=pow(j,0.2);
    }
    printf("%d %d\n",a,b);
    
    return 0;
}