#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n>=200 && n<=299)
cout<<n+50;
if(n>=300 && a<=499)
cout<<n+100;
if(n>=500)
cout<<n+200;
return 0;
}
/**************************************************************
Problem: 1391
User: cyp
Language: C++
Result: Compile Error
****************************************************************/