int input int input for in range ans count for in range if 13 count in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
n = int(input())
a = [int(input()) for i in range(5)]
ans = 0
count = 0
for i in range(5,n):
t = i%5
if a[t]%13 == 0: count += 1
x = int(input())
if x%13 == 0:ans += i-5+1
else: ans += count
a[t] = x
print(a)
print(ans)