a,b,c,d,e,f,g = map(int,input().split())
sum = 0
if a >= 6 and a <= 14:
sum += 1
if b >= 6 and b <= 14:
sum += 1
if c >= 6 and c <= 14:
sum += 1
if d >= 6 and d <= 14:
sum += 1
if e >= 6 and e <= 14:
sum += 1
if f >= 6 and f <= 14:
sum += 1
if g >= 6 and g <= 14:
sum += 1
print(sum)
)))
Смотри рисунок.