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