#include <bits/stdc++.h>
#include <iostream>
#include<stdio.h>
#include<math.h>
#include<string.h>
using namespace std;
 
int main() {
   long long int t,n,i,j,k,l,m,max1=0,count=0;
  long long int a[300001];
   scanf("%lld",&n);
   max1=n%100;
   if(max1==0)
   printf("100");
   else
   printf("%lld\n",100-max1);
    
	return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
  
int main(){
  int n;
  cin >> n;
  cout << ceil(n/100.0) ;

}