#include<stdio.h>
#include<stdlib.h>
int cost(int);
int
main(void)
{
int packet = -1;
char s[100];
do {
} while ((packet
=atoi(s
)) <= 0); printf("\t%d パケット利用で %d 円支払う.\n", packet
, cost
(packet
));
return 0;
}
int
cost(int packet)
{
return
packet >= 54000 ?
5940 :
packet * 0.11;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CgppbnQgICAgICAgICAgICAgY29zdChpbnQpOwoKaW50Cm1haW4odm9pZCkKewogIGludCAgICAgICAgICAgICBwYWNrZXQgPSAtMTsKICBjaGFyICAgICAgICAgICAgc1sxMDBdOwoKICBkbyB7CiAgICBwcmludGYoIuODkeOCseODg+ODiOaVsOWFpeWKmyjljYrop5LmlbDlrZcpOiIpOwogICAgZmdldHMocywgMTAwLCBzdGRpbik7CiAgfSB3aGlsZSAoKHBhY2tldCA9YXRvaShzKSkgPD0gMCk7CiAgcHJpbnRmKCJcdCVkIOODkeOCseODg+ODiOWIqeeUqOOBpyAlZCDlhobmlK/miZXjgYYuXG4iLCBwYWNrZXQsIGNvc3QocGFja2V0KSk7CgogIHJldHVybiAwOwp9CgppbnQKY29zdChpbnQgcGFja2V0KQp7CiAgcmV0dXJuCiAgICBwYWNrZXQgPj0gNTQwMDAgPwogICAgNTk0MCA6CiAgICBwYWNrZXQgKiAwLjExOwp9