Problem J1: Tournament Selection

Each player in a tournament plays six games. There are no ties. The tournament director places the players in groups based on the results of games as follows:

• if a player wins 5 or 6 games, they are placed in Group 1;
• if a player wins 3 or 4 games, they are placed in Group 2;
• if a player wins 1 or 2 games, they are placed in Group 3;
• if a player does not win any games, they are eliminated from the tournament.

Write a program to determine which group a player is placed in.

Input Format

The input consists of six lines, each with one of two possible letters: `W` (to indicate a win) or `L` (to indicate a loss).

Output Format

The output will be either `1`, `2`, `3` (to indicate which Group the player should be placed in) or `-1` (to indicate the player has been eliminated).

```W
L
W
W
L
W
```

```2
```

```L
L
L
L
L
L
```

Sample Output 2

```-1
```

Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

• (0/0)

• (1/0)
Test Data Still has carriage returns

• (1/0)
My code works on windows cmd but doesn't work on peg?

• (0/1)
Sorry, the test data (improperly) includes carriage returns. Please strip your input strings. I'll fix the test data soon.

• (0/1)
whats wrong with my code

• (0/1)
Something weird with python comparing strings.
Just compare the first character of the string.
Or use c++ like we taught you.

• (1/0)
You should always strip your input from carriage returns and the likes when using Python

• (0/1)
thanks, i added .strip() to the end of my input!

• (1/0)
Hey everyone, I made a poll to get rough estimates of CCOQR results. http://www.strawpoll.me/7032630

• (0/1)
the judge thinks -1 is a wrong answer

• (0/2)
BRUH, think about trailing spaces ;) ( ͡° ͜ʖ ͡°)