import random
mas = [[1,2,3],[4,5,6],[7,8,9]]
a = random.choice(random.choice(mas))
b = random.choice(random.choice(mas))
print(a + b)
c = random.choice(random.choice(mas))
d = random.choice(random.choice(mas))
e = random.choice(random.choice(mas))
print((c+d+e)/3)
