Preparando MOJI

Cheese Board

1000ms 262144K

Description:

Not to be confused with chessboard.

Input:

The first line of input contains a single integer N (1 ≤ N ≤ 100) — the number of cheeses you have.

The next N lines describe the cheeses you have. Each line contains two space-separated strings: the name of the cheese and its type. The name is a string of lowercase English letters between 1 and 10 characters long. The type is either "soft" or "hard. All cheese names are distinct.

Output:

Output a single number.

Sample Input:

9
brie soft
camembert soft
feta soft
goat soft
muenster soft
asiago hard
cheddar hard
gouda hard
swiss hard

Sample Output:

3

Sample Input:

6
parmesan hard
emmental hard
edam hard
colby hard
gruyere hard
asiago hard

Sample Output:

4

Informação

Codeforces

Provedor Codeforces

Código CF952E

Tags

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 09:32:46

Relacionados

Nada ainda