#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main()
{
int k;
cin>>k;
if(k%4==2){
cout<<"none";
return 0;
}
if(k==0){
cout<<0;
return 0;
}
if(k>0){
for(int i=sqrt(k);i>=1;i--){
if(k%i==0&&(i&1)==((k/i)&1)){
cout<<(k/i+i)/2;
return 0;
}
}
return 0;
}
if(k<0)
{
k=-k;
for(int i=sqrt(k);i>=1;i--){
if(k%i==0&&(i&1)==((k/i)&1)){
cout<<(k/i-i)/2;
return 0;
}
}
}
return 0;
}