d1 = str(input())
d2 = str(input())
d3 = str(input())
d4 = str(input())
d5 = str(input())
d6 = str(input())
d7 = str(input())
count = 0
for counter in d1,d2,d3,d4,d5,d6,d7:
    if( counter == "no"):
        count += 1
print(count)
2bbec99274c5118aa8ed6bfb91576690339a5021
<mask token>

<mask token>
for counter in (d1, d2, d3, d4, d5, d6, d7):
    if counter == 'no':
        count += 1
print(count)

d1 = str(input())
d2 = str(input())
d3 = str(input())
d4 = str(input())
d5 = str(input())
d6 = str(input())
d7 = str(input())
count = 0
for counter in (d1, d2, d3, d4, d5, d6, d7):
    if counter == 'no':
        count += 1
print(count)

d1 = str(input())
d2 = str(input())
d3 = str(input())
d4 = str(input())
d5 = str(input())
d6 = str(input())
d7 = str(input())
count = 0
for counter in d1,d2,d3,d4,d5,d6,d7:
    if( counter == "no"):
        count += 1
print(count)