#include <iostream>
using namespace std;

int main() {
	//I'm going to make an alias to cin, just so we can pretend
	//the code later is reading from a file
	istream& fin = cin; //just pretend I opened a file here
	
	int num_lines;    //read the first line of the file
	fin >> num_lines; //to see how many lines need to be read
	
	double A=0, B=0, C=0, D=0, E=0; //initalize all the totals to zero
	
	for(int i=0; i<num_lines; ++i) {
		char team;
		double score;
		fin >> team >> score; //read team and score from each line
		
		//use a switch statement on team to figure out which variable
		//your program should add score to
	}
	
	//do whatever else you need to do with the tallied scores
	
	return 0;
}