n = int(input('n = '))
lst = [int(i) for i in input('список = '). split(' ')]
result = [i for i in set(lst) if i < n]
print(result)
n = int(input('n = '))
lst = [int(i) for i in input('список = '). split(' ')]
result = [i for i in set(lst) if i < n]
print(result)