### Problem Statement

The job of a search engine is to provide relevant results to search queries. However, most real search queries match thousands, if not millions, of websites. Since some of them have to be shown, it is important for the search engine to figure out which websites are worth displaying. This is done with several heuristics, one of which considers the count of external websites linking to the website in question, as well as their importance.

You are given a String[] votes and String website. Each element of votes consists of a website name, followed by a single space, followed by a single space separated list of all the websites that link to it. All website names contain only uppercase letters. Count and return the votes that website has, following the strategy outlined above.

### Constraints

-votes will contain between 1 and 50 elements, inclusive.
-Each element of votes will contain between 1 and 50 characters, inclusive.
-Each element of votes will contain only uppercase letters ('A'-'Z') and spaces (' ').
-Each element of votes will contain no leading or trailing spaces, and no consecutive spaces.
-website will contain between 1 and 50 characters, inclusive.
-website will contain only uppercase letters ('A'-'Z').
-website will be contained in votes either as a linking website or a website that is linked to.
-A website will never directly link back to itself.
-Each element of votes will have a distinct first website name. Within a single element of votes no website name will be repeated.

### Examples

0)

 `{"C A B"}` `"C"`
`Returns: 3`
 The example from the problem statement.
1)

 `{"A B C D", "B C D", "C D"}` `"A"`
`Returns: 8`
 B has 4 votes, C has 2 votes, and D has 1 vote. Initially A has 1 vote, which changes to 8 after the strategy is applied.
2)

 `{"A"}` `"A"`
`Returns: 1`
 Unfortunately, no websites currently link to A.
3)

 `{"A B", "B A"}` `"A"`
`Returns: 1`
 B's votes to A and A's votes to B are ignored, leaving just one vote for each.
4)

 `{"A B C D E F", "B A", "C B", "D B"}` `"A"`
`Returns: 3`
 Not only does A directly link to B, but also indirectly to C and D. This leaves just 3 votes for A.
5)

 `{"MYSITE OTHERSITE ANOTHERSITE THIRDSITE"}` `"MYSITE"`
`Returns: 4`

#### Problem url:

http://www.topcoder.com/stat?c=problem_statement&pm=6406

#### Problem stats url:

http://www.topcoder.com/tc?module=ProblemDetail&rd=10766&pm=6406

ValD

#### Testers:

PabloGilberto , brett1479 , Olexiy , lovro

#### Problem categories:

Recursion, Search