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