public void parseFile() throws IOException {
		BufferedReader br = new BufferedReader(new FileReader(filename));
		String line;
		int i;
		int curMajor;
		int majorCount;
		
		while ((line = br.readLine()) != null) {
			String[] vals = line.split(",");
			if (vals.length == 0) {
				continue;
			}
			elements = new int[vals.length];
			elements[0] = Integer.parseInt(vals[0]);
			curMajor = elements[0];
			majorCount = 1;
			for (i = 1; i < vals.length; i++) {
				elements[i] = Integer.parseInt(vals[i]);
				
				if (elements[i] == curMajor) {
					majorCount++;
				} else {
					majorCount--;
				}
				
				if (majorCount == -1) {
					curMajor = elements[i];
					majorCount = 1;
				}
			}
			
			if (isMajor(curMajor)) {
				System.out.println(curMajor);
			} else {
				System.out.println("None");
			}
		}
	}