#include<stdio.h> int main(){ int N; while(scanf("%d",&N)!=EOF) { printf("%d\n",N-1911); } return 0; }