#include <stdio.h>

int main(void) {
int money, fee, total;
scanf("%d",&money);
if(money<0)
{
printf("正しく金額を入力して下さい");
}
else if(money<5000)
{
fee=100;
total=fee+money;
printf("%d円の支払いです",total);
}
else if(money<10000)
{
fee=200;
total=fee+money;
printf("%d円の支払いです",total);
}
else 
{
fee=300;
total=fee+money;
printf("%dの支払いです",total);
}

return 0;
}