#include<bits/stdc++.h> using namespace std; int main() { int a=1000,b=50; int c; cin>>c; cout<<a-b*c; }