#include<iostream> using namespace std; int main() { int n,x; cin>>n; x=1000-50*n; cout<<x; return 0; }