1 test case is failing in pythagorus triplet

import java.util.;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
long n = scn.nextInt();
long square = n
n;
if(n%2==0){
long k = (square/4);
long l = (square/4)-1;
if(ll + kk ==square){
System.out.println("-1");
}else{
System.out.println(l+" “+k);
}
}else{
long k = (square+1)/2;
long l = (square-1)/2;
if(ll + kk ==square){
System.out.println(”-1");
}else{
System.out.println(l+" "+k);
}
}

}

}
what is the issue in my code? which test case is failing?

@itismohiton for n = 6 .
Correct output = 8 10
Your output = 8 9

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.