#32906: _ans


yp11151049@yphs.tp.edu.tw (901-26李文睿)


#include<bits/stdc++.h>
using namespace std;
int main(){
    int L,D;
    while(cin>>L){
        if(L<0) D=(-L)*2;
        else if(L>0) D=L*2-1;
        cout<<D<<endl;
    }
}