#34285: //簡單ans//


yp11152061@yphs.tp.edu.tw (907-05李羚綾)


#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	while(cin>>n){
	cout<<n-1911<<endl;
	}
}