#include int main(void){ int Y; scanf("%d",&Y); printf("%d\n",Y - 2017); return 0; }