import random
a = []
for i in range(10):
a.append(random.randint(-10, 20))
b = [i for i in a if i%3 == 0]
print(sum(b)/len(b))
import random
a = []
for i in range(10):
a.append(random.randint(-10, 20))
b = [i for i in a if i%3 == 0]
print(sum(b)/len(b))