Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m,n = map(int, input().split())
- s = 1
- for i in range(m):
- r = input().split()
- for j in range(n):
- c = int(r[j])
- if c % 6 == 0:
- s = s * c
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement