#include using namespace std; #define P(x) cout << (x) << "\n" int main(){ int y;cin>>y;P(2017 - y); return 0; }