abstract class Competitor 
{	protected int health = 100;
	protected String name;

	protected static java.util.Random gen = new java.util.Random();
	public Competitor(String nm)
	{	name = nm;
		health = 100;
	}

	public abstract void fight(Competitor other);

	public void decHealth(int blow)
	{	health = Math.max(0, health - blow);
	}

	public String getName() 
	{	return name;
	}

	public int getHealth() 
	{	return health;
	}

	public String toString() 
	{	return name + ", health = " + health;
}	}