ZeroJudge Link (Zh)

#include <stdio.h>

main() {
  int input;
  while (scanf("%d", &input) != EOF) {
    printf("%d\n", input - 1911);
  }
  return 0;
}