/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Player4
{
	private int hp;
	private int place;
	public Player4(){
		hp=100;
		place=0;
	}
	public void work(){
		if(hp>=1){
			hp=hp-1;
			place=place+1;
		}
		else if(hp<=0){
			System.out.println("dead...");
		}
	}
	public boolean isAlive(){
			return hp>=1;
		}
	public void print(){
		System.out.println(hp);
		System.out.println(place);
	}
}
class Game4{
	public static void main (String[] args) throws java.lang.Exception{
		Player4 p=new Player4();
		while(p.isAlive()){
			p.print();
			p.work();
		}
		p.print();
	}
}