import java.util.Scanner;
public class Pythagorus_triplet1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
if(n%2==0) {
int m=n/2;
int per= (int) Math.pow(m, 2)-1;
int hypo = (int) Math.pow(m, 2)+1;
if (n<per && n<hypo) {
System.out.print(per+" ");
System.out.print(hypo);
}
else {
System.out.print("-1");
}
}
else if(n%2 !=0) {
int m= (int) Math.sqrt(n+1);
int base = 2 *m;
int per= (int) Math.pow(m, 2)-1;
int hypo = (int) Math.pow(m, 2)+1;
if(per<base && per<hypo){
System.out.print(base+" ");
System.out.print(hypo);
}
else {
System.out.print("-1");
}
}
}
}