#include int main() { int Y; std::cin >> Y; int age = 2017 - Y; std::cout << age << std::endl; return 0; }