giving only testcase 3 correct out of 5 testcases
#include
using namespace std;
int main() {
int i,m,n,a,c,b;
cin>>i;
//float m,n,a,c,b;
if(i%2==0){
m=(i/2);
a=(mm)-1; c=(mm)-+1;
if(a+m>=c && a+c>=m && c+m>=a)
cout<<a<<" “<<c<<endl;
else
cout<<”-1";
}
else{
m=(i+1)/2; n=(i-1)/2;
a=2mn; b=(mm)-(nn); c=(mm)+(nn);
if(a+b>=c && a+c>=b && c+b>=a)
cout<<a<<" “<<c<<endl;
else
cout<<”-1";
}
return 0;
}