#include <iostream>


using namespace std;



int main()
{
    int X;

    cin >> X;

    if (X % 100 == 0) {
        X = 100;
    } else {
        X = 100 - X%100;
    }

    cout << X;

   return 0;
}


#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;

int main(){
  ll X;
  cin >> X;

  X %= 100;

  cout << 100 - X << "\n";
  
  return 0;
}
