#include using namespace std; int main() { int y; cin >> y; const int this_year = 2017; cout << this_year - y << '\n'; }