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