#include
using namespace std;
int main() {
int n;
cin>>n;
if (n%2==0)
{
int t;
t=(nn)/4 -1;
if (t<=n)
{
cout<<"-1";
}
else
{cout<<t<<" ";
cout<<(nn)/4 +1<<endl;}
}
else
{
int t;
t=(nn-1)/2;
if (t<=n)
{
cout<<"-1";
}
else
{cout<<t<<" ";
cout<<(nn+1)/2;}
}
}
Test case 1 and 2 failing
@mishranavneet1710 hey navnit please use long long int for large value it will pass all the case if it is failing again do share your code with ide.codingblocks.com