#include using namespace std; int main(){ int y,ans; cin>>y; ans=2017-y; cout<