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

#define save_some_time ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pb push_back
#define ll long long int

void V_in(vector <ll> &V, int n) {
	for (int i = 0; i < n; i++) {
		int a; cin >> a;
		V.pb(a);
	}
}

void V_out(vector <ll> V) {
	for (int i = 0; i < V.size(); i++) {
		cout << V[i] << " ";
	}
}

int main() {	

	save_some_time;
	int n; cin >> n;
	cout << 100-n%100;
	
}
#include <bits/stdc++.h>
#define ll long long 
#define mod 1e9 + 7
using namespace std;
int main(){
    #ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    #endif
    ll n;cin>>n;
    ll rem = n%100;
    if(rem==0){
        cout<<100;
    }else{
        cout<<100-rem;
    }
    return 0;
}
