What is the missing testcase in this question?

question: pythagoras triplets

code:
import java.util.;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int a=0,b=0;
if(n%2!=0)
{
a=((n
n)/2);
b=((n*n)/2)+1;

	}
	else
	{
		a=((n/2)*(n/2))-1;
		b=((n/2)*(n/2))+1;
		
	}
	if(n==0||n==1||n==2)
		System.out.println("-1");
	else
	System.out.println(a+" "+b);

}

}

@prasadnitesh202,
Use long instead of int everywhere.

ha it worked. but why didnt int didn’t work?? the range of int is 10^9 right?? and constraints mentioned was also 10^9

@prasadnitesh202,
Input range is 10^9, but the answer will exceed this range. Hence use long.