import java.util.*;
class Player2{
private int hp;
private int place;
public Player2(){
hp=100;
place=0;
}
public int getHp(){
return hp;
}
public int getPlace(){
return place;
}
public void work(){
hp-=1;
place+=1;
}
}
class Game2{
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()); }
}
aW1wb3J0IGphdmEudXRpbC4qOwpjbGFzcyBQbGF5ZXIyewoJcHJpdmF0ZSBpbnQgaHA7Cglwcml2YXRlIGludCBwbGFjZTsKCXB1YmxpYyBQbGF5ZXIyKCl7CgkJaHA9MTAwOwoJCXBsYWNlPTA7Cgl9CglwdWJsaWMgaW50IGdldEhwKCl7CgkJcmV0dXJuIGhwOwoJfQoJcHVibGljIGludCBnZXRQbGFjZSgpewoJCXJldHVybiBwbGFjZTsKCX0KCXB1YmxpYyB2b2lkIHdvcmsoKXsKCQlocC09MTsKCQlwbGFjZSs9MTsKCX0KfQpjbGFzcyBHYW1lMnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpewoJCVBsYXllcjIgcD1uZXcgUGxheWVyMigpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigiaHA9IitwLmdldEhwKCkrIixwbGFjZT0iK3AuZ2V0UGxhY2UoKSk7CgkJcC53b3JrKCk7CgkJU3lzdGVtLm91dC5wcmludGxuKCJocD0iK3AuZ2V0SHAoKSsiLHBsYWNlPSIrcC5nZXRQbGFjZSgpKTsKCX0KfQ==