Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double x =0;
double y =0;
double result =0;
double sqn = n*n;
if(n%2!=0) {
double sq = sqn/2;
x = (double) (sq-0.5);
y = (double)(sq+0.5);
result = y*y - x*x;
if (result == sqn) {
System.out.println((int)x+" "+(int)y);
}else {
System.out.println("-1");
}
}
else {
x = (int) (Math.pow(n/2, 2)-1);
y = (int) (Math.pow(n/2, 2)+1);
result = y*y - x*x;
if (result == sqn) {
System.out.println((int)x+" "+(int)y);
}else {
System.out.println("-1");
}
}
}
}