#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define e "\n"
#define fl(x,n) for(ll i=x;i<=n;i++)
#define fl2(x,n) for(ll i=x;i>=n;i--)
using namespace std;
int main()
{


       ll n;
       cin >> n;
       if(n%100==0)
        cout << 100 << e;
       else
       {
           ll d=ceil((double)n/100);

           cout << d*100-n << e;
       }





       return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int X;
  cin >> X;
  if (X % 100 == 0) {
    cout << 100 << endl;
  }
  else {
    cout << 100 - X % 100 << endl;
  }
  return 0;
}