Объяснение:
inputStr = input().split()
result = 0
for i in range(0,8):
if (inputStr[i][-1] == '4') and (int(inputStr[i]) % 3 == 0):
result+= 1
print(result)
Объяснение:
inputStr = input().split()
result = 0
for i in range(0,8):
if (inputStr[i][-1] == '4') and (int(inputStr[i]) % 3 == 0):
result+= 1
print(result)