#include <set>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <queue>
#include <string>
#include <vector>
#include <cmath>
#include <cstdio>
#include <utility>
#include <iostream>
#include <iterator>
#include <algorithm>
//#include <bits/stdc++.h>


using namespace std;
typedef long long ll;


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














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

#define LOCAL 1;
#ifdef LOCAL
#define dbg(x) cerr << __LINE__ << " : " << #x << " = " << (x) << endl
#else
#define dbg(x) true
#endif

template<typename T>
ostream& operator<< (ostream& out, const vector<T>& v) {
  out << "[";
  size_t last = v.size() - 1;
  for (size_t i = 0; i < v.size(); ++i) {
    out << v[i];
    if (i != last)
      out << ", ";
  }
  out << "]";
  return out;
}

template<typename F, typename S>
ostream& operator<< (ostream& out, const pair<F,S>& p) {
  out << "[" << p.first << ", " << p.second << "]";
  return out;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);

  ll x; cin >> x;
  cout << (100 - x%100) << endl;
  
  return 0;
    

}
