class VolleyTeam implements Comparable<Team>{
	private String name;
	private int points;
	private int victories;
	private int balance;

	public VolleyTeam(String s){
		this.name=s;
	}

	public addPoints(int i){
		this.points+=i;
	}

	public addVictory(){
		victories++
	}

	public changeBalance(int i){
		balance+=i;
	}

	public String toString(){
		return this.name;
	}

	public boolean equals(Object o){
		if (o instanceof Team){
			Team t = (Team)o;
			return this.name.equals(t.name);
		}else return false;
	}

	public int compareTo(Team t){
		//compares in descending order, the first has more points, more victories and/or more balance
		if (this.points!=t.points) return t.point-this.points;
		if (this.victories!=t.victories) return t.victories-this.points;
		return t.victories-this.victories;
	}

	public Team merge(Team t){
		this.victories+=t.victories;
		this.addPoints(t.points);
		this.changeBalance(t.balance);
		return this;
	}
}


class LeagueGame{
	VolleyTeam home, visitor;
	public LeagueGame(String s){
		Scanner sc = new Scanner(s);
		String homeName = "";
		while (sc.next!="vs"){
			
		}
	}
}

public class Counter{

	static Set<VolleyTeam> teams = new TreeSet<>();
	public static void getGame(String s){

	}
}
@@ -1,12 +1,32 @@
+import java.util.*;%0A
 class Volley
@@ -52,16 +52,22 @@
 parable%3C
+Volley
 Team%3E%7B%0A%09
@@ -212,16 +212,21 @@
 %09public 
+void 
 addPoint
@@ -265,16 +265,21 @@
 %09public 
+void 
 addVicto
@@ -297,16 +297,17 @@
 tories++
+;
 %0A%09%7D%0A%0A%09pu
@@ -311,16 +311,21 @@
 %09public 
+void 
 changeBa
@@ -460,16 +460,22 @@
 tanceof 
+Volley
 Team)%7B%0A%09
@@ -476,16 +476,22 @@
 am)%7B%0A%09%09%09
+Volley
 Team t =
@@ -492,16 +492,22 @@
 am t = (
+Volley
 Team)o;%0A
@@ -590,16 +590,22 @@
 mpareTo(
+Volley
 Team t)%7B
@@ -744,16 +744,17 @@
  t.point
+s
 -this.po
@@ -875,16 +875,22 @@
 %09public 
+Volley
 Team mer
@@ -892,16 +892,22 @@
 m merge(
+Volley
 Team t)%7B
@@ -1066,16 +1066,47 @@
 isitor;%0A
+%09String homeName, visitorName;%0A
 %09public 
@@ -1134,209 +1134,633 @@
 %0A%09%09S
-canner sc = new Scanner(s);%0A%09%09String homeName = %22%22;%0A%09%09while (sc.next!=%22vs%22)%7B%0A%09%09%09%0A%09%09%7D%0A%09%7D%0A%7D%0A%0Apublic class Counter%7B%0A%0A%09static Set%3CVolleyTeam%3E teams = new TreeSet%3C%3E();%0A%09public static void getGame(String s)%7B
+tring%5B%5D tokens = s.split(%22vs%22);%0A%09%09homeName = tokens%5B0%5D.trim();%0A%09%09tokens = tokens%5B1%5D.split(%22/%22);%0A%09%09visitorName = tokens%5B0%5D.trim();%0A%0A%09%09for (int i = 1; i%3Ctokens.length;i++)%7B%0A%09%09%09System.out.println(tokens%5Bi%5D);%0A%09%09%7D%0A%0A%0A%09%09System.out.println(homeName);%0A%09%09System.out.println(visitorName);%0A%0A%09%7D%0A%7D%0A%0Apublic class Counter%7B%0A%0A%09public static void main(String%5B%5D args)%7B%0A%09%09LeagueGame lg1 = new LeagueGame(%22DENTIL-PRAIA%C2%A0CLUBE%C2%A0vs CAMPONESA-MINAS/3-2/22-25/25-15/21-25/25-22/15%C2%AD-12%22);%0A%09%09//LeagueGame lg2 = new LeagueGame(%22DENTIL-PRAIA%C2%A0CLUBE%C2%A0vs CAMPONESA-MINAS/3%C2%AD-0/25%C2%AD-21/25%C2%AD-18/25%C2%AD-22%22);%0A%0A%09%09//System.out.println(lg1.homeName.equals(lg2.homeName));%0A%0A
 %0A%0A%09%7D

test LeagueGame