#include <bits/stdc++.h>
using namespace std;
int main()
{
int x,y;
cin>>x;
if(x>0) y=x+1;
if(x==0) y=x;
if(x<0) y=x-1;
cout<<y<<endl;
return 0;
}
using namespace std;
int main()
{
int x,y;
cin>>x;
if(x>0) y=x+1;
if(x==0) y=x;
if(x<0) y=x-1;
cout<<y<<endl;
return 0;
}