n = int(input())
x = str()
x2 = str()
k = int(0)
k2 = int(0)
for i in range(n):
x = ''
x2 = ''
x = input()
for j in x:
x2 = str(j) + str(x2)
for z in x2:
k2 += 1
if k2 == 2:
if z == '5':
k +=1
k2 = 0
break
print(k)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input())
x = str()
x2 = str()
k = int(0)
k2 = int(0)
for i in range(n):
x = ''
x2 = ''
x = input()
for j in x:
x2 = str(j) + str(x2)
for z in x2:
k2 += 1
if k2 == 2:
if z == '5':
k +=1
k2 = 0
break
print(k)