from random import randint
a, b = list([randint(-100, 100) for i in range(randint(10, 100))] for i in range(2))
array = list(set(a) & set(b))
array.sort()
for i in array:
print(i)
from random import randint
a, b = list([randint(-100, 100) for i in range(randint(10, 100))] for i in range(2))
array = list(set(a) & set(b))
array.sort()
for i in array:
print(i)