# include<iostream> using namespace std; int main() { int j,i=10000,k; cin>>j; if(j%2==1) { k=i-(j-1)/2; } else { k=i-(j-2); } cout<<k; return 0; }