#include <stdio.h>
int main(void) {
int a,n;
if((a<5000)&&(a>0)){
n=a+100;
}
else if((a>=5000)&&(a<10000)){
n=a+200;
}
else if(a>=10000){
n=a+300;
}
else if (a<=0)
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CmludCBhLG47CnNjYW5mKCIlZCIsJmEpOwppZigoYTw1MDAwKSYmKGE+MCkpewogbj1hKzEwMDsKIHByaW50ZigiJWTlhobjga7mlK/miZXjgYTjgafjgZnjgIJcbiIsbik7CiB9CmVsc2UgaWYoKGE+PTUwMDApJiYoYTwxMDAwMCkpewogbj1hKzIwMDsKIHByaW50ZigiJWTlhobjga7mlK/miZXjgYTjgafjgZnjgIJcbiIsbik7CiB9CmVsc2UgaWYoYT49MTAwMDApewpuPWErMzAwOwpwcmludGYoIiVk5YaG44Gu5pSv5omV44GE44Gn44GZ44CCXG4iLG4pOwp9CmVsc2UgaWYgKGE8PTApCnByaW50Zigi5q2j44GX44GE5YCk44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GE44CCXG4iKTsKCgoKCXJldHVybiAwOwp9Cg==