#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  cout << (100 - (x%100)) << "\n";
}
#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, revnum, t, pali;
  cin >> N;
  revnum = 0;
  if (N == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  while (N % 10 == 0) {
    N = N / 10;
  }
  pali = N;
  while (N != 0) {
    t = N % 10;
    revnum = revnum * 10 + t;
    N = N / 10;
  }
  if (pali == revnum) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }

}
