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

#define INF 1e9
#define PI 3.141592653589793238
#define N 1000000010
#define mod 1000000007
#define REP(inc, bgn, end) for(int inc=bgn; inc<end; inc++)
typedef long long ll;

int main() {
    ll n; cin>>n;
    
    cout << 100-(n%100) << endl;

    return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int x,n;
	cin>>x;
	for(int i=1;i<=100000;i++)
	{
		if((x+i)%100==0)
		{
			cout<<i;
			return 0;
		}
		if(x%100==0)
		{
			break;
		}
	}
	cout<<"100";
	return 0;
}