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