#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; }}