import re
list1=[]
n=int(input())
for i in range(n):
    current=input()
    matched=re.search('^\w@[\d|a-z|A-Z]+\.[a-z]{1,3}$',current)
    if matched!=None:
        list1.append(current)
list1.sort
print(list1)
6d0aae9cc7f398e03c607d6633aeb92e3553a9b3
<mask token>

<mask token>
for i in range(n):
    current = input()
    matched = re.search('^\\w@[\\d|a-z|A-Z]+\\.[a-z]{1,3}$', current)
    if matched != None:
        list1.append(current)
list1.sort
print(list1)

<mask token>
list1 = []
n = int(input())
for i in range(n):
    current = input()
    matched = re.search('^\\w@[\\d|a-z|A-Z]+\\.[a-z]{1,3}$', current)
    if matched != None:
        list1.append(current)
list1.sort
print(list1)

import re
list1 = []
n = int(input())
for i in range(n):
    current = input()
    matched = re.search('^\\w@[\\d|a-z|A-Z]+\\.[a-z]{1,3}$', current)
    if matched != None:
        list1.append(current)
list1.sort
print(list1)

import re
list1=[]
n=int(input())
for i in range(n):
    current=input()
    matched=re.search('^\w@[\d|a-z|A-Z]+\.[a-z]{1,3}$',current)
    if matched!=None:
        list1.append(current)
list1.sort
print(list1)