#pragma GCC optimize("O3")

#include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define pb push_back


int main(){
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	
	string s;
	cin >> s;
	string res = "";
	for(char c : s){
		if(c == '.') break;
		else res +=c;
	}
	cout << res;
	
	return 0;
}
#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  cout << 100-(n%100) << "\n";
  return 0;
}