nclude
using namespace std;
int main() {
int N,n,m,a,b,c;
cin>>N;
if(N==1 || N==2 || N==-1|| N==-2 || N==0){
cout<<"-1"<<endl;
}
else if(N%2==0){
m=N/2;
n=1;
a=(mm)-(nn);
b=2mn;
c=(mm)+(nn);
if(((aa)+(bb))==(cc)){
cout<<a<<endl<<c;
}
}
else{
m=(N+1)/2;
n=(N-1)/2;
a=(mm)-(nn);
b=2mn;
c=(mm)+(nn);
if(((aa)+(bb))==(cc)){
cout<<b<<endl<<c;
}
}
return 0;
}
For this code also test case 0 and 1 shows wrong output.Please share the code for which all test cases show correct answer.