#include<bits/stdc++.h>
using namespace std;
int main(){
int n,h;
cin>>n;
if (n>=500){
h=n+200;
}
else if (300<=n && n<=499){
h=n+100;
}
else if (200<=n && n<=299){
h=n+50;
}
else{
h=n;
}
cout<<h<<endl;
return 0;
}
/**************************************************************
Problem: 1391
User: xiaojingxuan
Language: C++
Result: Accepted
Time:24 ms
Memory:2072 kb
****************************************************************/