#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x;
if(x>0){
y=x+1;
}
else if(x<0){
y=x-1;
}
else {
y=x;
}
printf("%d",y);
}
/**************************************************************
Problem: 1038
User: xiaojingxuan
Language: C++
Result: Accepted
Time:22 ms
Memory:2072 kb
****************************************************************/