单点时限: 1.0 sec
内存限制: 256 MB
lbromine
wanted to play It Takes Two, but it takes two. So he went to his friends and asked them if they had played It Takes Two.
It is known thatlbromine
has
lbromine
thinks that a friend has played It Takes Two only when the friend said he had played with another person or another friend oflbromine
said he had played with him.
Nowlbromine
wants to count how many friends he thinks have never played It Takes Two so that he can choose the right person to play with.
An integer lbromine
has
The next
It is guaranteed that the answer oflbromine's
friends can only be No
or a person’s name (may not be a friend oflbromine
).
A person’s name only contains uppercase and lowercase letters and underscores,and the length cannot exceed
no one names No
.
One integer indicates how many friendslbromine
thinks have never played It Takes Two
3 CN_Amuzi No komorebi MaverickFW MaverickFW No
1