class Player2 {
    // メンバ変数
    private int hp;
    private int place;

    // 引数なしコンストラクタ
    public Player2() {
        this.hp = 100;
        this.place = 0;
    }

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

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

    // work メソッド
    public void work() {
        this.hp -= 1;
        this.place += 1;
    }
}

// ここを Main に変更しました
public class Main {
    public static void main(String[] args) {
        // Player2型のインスタンス p を作る
        Player2 p = new Player2();

        // p の中の hp と place を表示（更新前）
        System.out.println("hp: " + p.getHp() + ", place: " + p.getPlace());

        // p に対して work() を呼び出して、hp と place を更新
        p.work();

        // p の中の hp と place を表示（更新後）
        System.out.println("hp: " + p.getHp() + ", place: " + p.getPlace());
    }
}