#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define rep(i, n); for (int i = 0; i < (int)(n); i++)
#define rep1(i,n); for (int i = 1; i <= (int)(n); i++)

int main()
{
    int n;
    cin >> n;
    
    cout << 100-(n%100) << endl;
   
}
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int sz = 2e5+5;

int main() {
   int x;
   cin >> x;
   cout << 100 - x % 100;
}
