#반복제어문2 - 자가진단5
a=list(map(int, input().split()))
c=0
d=0
t=0
for i in a:
if i%3==0:
c+=1
if i%5==0:
d+=1
print("Multiples of 3 : %d" %c)
print("Multiples of 5 : %d" %d)
#반복제어문2 - 자가진단7
for i in range(2, 7):
for j in range(i, i+5):
print(j, end=" ")
print(" ")
#반복제어문2 - 자가진단6
k=int(input())
a=list(map(int, input().split()))
su=0
for i in a:
su+=i
print("avg : %.1f" %(su/k))
if(su/k>=80):
print("pass")
else:
print("fail")
#반복제어문2 - 자가진단8
a, b=map(int, input().split())
if a>b:
for i in range(1, 10):
for j in range(a, b-1, -1):
print("%d * %d = %d " %(j,i,i*j), end=" ")
print(" ")
else:
for i in range(1, 10):
for j in range(a, b+1):
print("%d * %d = %d " %(j,i,i*j), end=" ")
print(" ")
#반복제어문2 - 자가진단8
for i in range(2, 5):
for j in range(1, 6):
print("%d * %d = %d " %(i,j,i*j), end=" ")
print(" ")
#반복제어문2 - 형성평가8
a, b=map(int, input().split())
for i in range(1, a+1):
for j in range(1, b+1):
print(i*j, end=" ")
print(" ")