Have written the code but the code editor is not compiling and editing it
import java.util.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int sq = n*n;
if(sq%2 == 0)
{
System.out.print("-1");
}
else
{
int num = sq/2;
System.out.print(num + " ");
System.out.print(num+1);
}
}
}