#include <stdio.h>
#define LIFE_MAX 9999

int main(void)
{
    int life = 1000;
    printf("体力の初期値 %d\n", life);
    life = life + 10000;
    if (life > LIFE_MAX) life = LIFE_MAX;
    printf("体力の現在値 %d\n", life);
}
