<filename>Learn/30-Days-Of-Code/Day 28/regexdb.py
N = int(input().strip())
names = []
for _ in range(N):
    name,email = input().strip().split(' ')
    name,email = [str(name),str(email)]
    if email.endswith("@<EMAIL>"):
        names.append(name)

names.sort()
for n in names:
    print(n)


<filename>Learn/30-Days-Of-Code/Day 28/regexdb.py
N = int(input().strip())
names = []
for _ in range(N):
    name,email = input().strip().split(' ')
    name,email = [str(name),str(email)]
    if email.endswith("@<EMAIL>"):
        names.append(name)

names.sort()
for n in names:
    print(n)

