Problem J: Lie

Problem J: Lie

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 771  Solved: 112
[Submit][Status][Web Board]

Description

Input

Output

Sample Input

1
2
2 werewolf
1 werewolf

Sample Output

0

HINT

[Submit][Status]