#include<bits/stdc++.h>
using namespace std;
int x;
int main(){
	cin>>x;
	switch (x/100) {
		case 0: case 1:
			cout<<x;
			break;
		case 2:
			cout<<x+50;
			break;
		case 3: case 4:
				cout<<x+100;
				break;
		default:
			cout<<x+200;
			break;
	}
		
	return 0;
}
/**************************************************************
	Problem: 1391
	User: zhangziang
	Language: C++
	Result: Accepted
	Time:29 ms
	Memory:2072 kb
****************************************************************/