class December15
{
	public static void main (String [] args)
	{
		int numberOfGames = rint (4, 11);

		int [] boston = new int [numberOfGames+1];
		int [] la = new int [numberOfGames+1];

		for (int i = 1; i <= numberOfGames; i++)
		{
			boston [i] = rint (72, 135);
			la [i] = rint (70, 120);
			System.out.println("Boston in game #" + i + " scored " +
					            boston[i] + "\n and LA scored " +
								la[i]);
		}
		System.out.println("Average pts scored by Boston = " +
				           averagePoints (boston) );
		System.out.println("Average pts scored by Los Angeles = " 
				           + averagePoints (la) ) ;
		System.out.println("The most points scored by Boston = "
				           + largestScore (boston) );
		System.out.println("The most points scored by LA = " +
				            largestScore (la) );

	}

	static int largestScore ( int [] team )
	{

		int largest = -17;
		for (int i = 1; i < team.length; i++)
		{
			if ( team[i] > largest ) largest = team[i];
		}
		return largest;
	}

	static double averagePoints ( int [] team )
	{
		double sum = 0.0;
		for (int i = 1; i < team.length; i++)
		{
			sum += team [i];
		}
		return sum / (team.length-1);
	}

	static int rint ( int a, int b)
	{
		return  (int) (Math.random() * (b-a+1)) + a;
	}
}
