• محدودیت زمان: ۴ ثانیه
  • محدودیت حافظه: ۲۵۶ مگابایت

Nima and Sina are searching for a bag full of money. They know the money has been hidden in a grave in the cemetery, but they don't know which grave it is.

Nima has a friend in the Civil Registry Office, and with the help of his friend, he gathered a list of people who are buried in this cemetery. Meanwhile, Sina ran into the cemetery and wrote down all the grave names he saw. They noticed Sina's list has one name more than Nima's list. They believe there is exactly one grave that is not registered in the Civil Registry Office, and the money is hidden in it. They want you to find its name; If you help them you have the chance to get 4,500,0004,500,000 Chugh from the bag.

ورودی

The first line of input contains the integer NN, the number of names in Sina's list.

Each of the following NN lines contains the names of grave names.

The additional N1N-1 lines contain the names of people in Nima's list.

All the names will consist of at least one and at most 2020 lowercase letters of the English alphabet. The names in a list won’t necessarily be unique.

1N100 0001 \le N \le 100\ 000

خروجی

The first and only line of output must contain the name of the fake grave.

مثال

ورودی نمونه ۱

3
stanton
karimi
bagheri
bagheri
karimi
Plain text

خروجی نمونه ۱

stanton
Plain text

ورودی نمونه ۲

4
nimaei
sinaei
nimaei
gol
sinaei
gol
nimaei
Plain text

خروجی نمونه ۲

nimaei
Plain text

ارسال پاسخ برای این سؤال
فایلی انتخاب نشده است.