import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int m,n,hypo,base,h;
if (N%2==0){
m = N/2;
n = 1;
hypo=(int)Math.pow(m,2)+(int)Math.pow(n,2);
h=(int)Math.pow(m,2)-(int)Math.pow(n,2);
if(hypo>h){
System.out.println(h+" “+hypo);
}
else{
System.out.println(hypo+” "+h);
}}
else if(N%2==1){
m=(N+1)/2;
n=(N-1)/2;
hypo=(int)Math.pow(m,2)+(int)Math.pow(n,2);
base=2*m*n;
if(hypo>base){
System.out.println(base+" "+hypo);
}
else{
System.out.println(hypo+" "+base);
}
}
else{
System.out.println("-1");
}
}
}
