#include <bits/stdc++.h> using namespace std; int main() { int x; cin>>x; if(x>=100&&x<200){ cout<<x-20; } else if(x>=200&&x>100){ cout<<x-70; } return 0; }