#include<iostream> using namespace std; int main() { long long int year ; while(cin >> year) { cout << year - 1911 << endl ; } return 0 ; }