interface FootballGame
{
	void atBall(Player p) throws OffsideException,YellowException;
}

class Player {}

class FootballException extends Exception {}

class YellowException extends FootballException {}

class RedException extends YellowException {}

class OffsideException extends FootballException {}

class StormException extends Exception {}


//


class NiceGame implements FootballGame
{
	public void atBall(Player p) throws OffsideException, YellowException {}
}


class HardGame implements FootballGame
{
	public void atBall(Player p) throws RedException {}
}


class StormyGame implements FootballGame
{
	public void atBall(Player p) throws OffsideException, YellowException, StormException {}
}


class NormalGame implements FootballGame
{
	public void atBall(Player p) {} //throws FootballException {}
}