#include using namespace std; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ ll N; cin>>N; N+=2; cout<<99999999999999-N<