import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
double N =sc.nextDouble();
double X=0;
double Y=0;
double s=0;
int d=0;
int i=0;
{
if(N%2==0)
{
X=((N/2)(N/2)+1);
Y=((N/2)(N/2)-1);
if(X>Y)
{
System.out.println((int)Y+" “+(int)X);
}
else
System.out.println((int)X+” "+(int)Y);
}
else if(N%2==1)
{
X=(NN)/2-0.5;
Y=(N*N)/2+0.5;
if(X>Y)
{
System.out.println((int)Y+" “+(int)X);
}
else
System.out.println((int)X+” “+(int)Y);
}
else
{
System.out.println(”-1");
}
}
}
}