class Player2 {
    private int hp;
    private int place;

    public Player2() {
        this.hp = 100;
        this.place = 0;
    }

    public int getHp() {
        return this.hp;
    }

    public int getPlace() {
        return this.place;
    }

    public void work() {
        this.hp -= 1;
        this.place += 1;
    }
}

public class Main {
    public static void main(String[] args) {
        Player2 p = new Player2();

        System.out.println("hp: " + p.getHp() + ", place: " + p.getPlace());

        p.work();

        System.out.println("hp: " + p.getHp() + ", place: " + p.getPlace());
    }
}