#include #include #include using namespace std; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); int Y; cin >> Y; int target = 2017; cout << target - Y << endl; return 0; }