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