Under construction

Still being built. Things may change

The Spoiled Marathoner

Interview

Time limit1sMemory limit256 MB

Summary
Find the one entrant name that appears in the list of N entrants but is missing from the N-1 finishers.
Level

Easy3 of 10

Topics
Hash map
Solved
No attempts yet

Problem

A marathon is held that every runner wants to enter, whatever their nationality or age. The race covers 42.195 km, and because the entry is so sought after, every entrant has finished it year after year. Every entrant but one!

Other runners would do anything for a place at the start line. Who is the spoiled entrant who took one and then failed to finish?

Input

The first line contains the number of entrants NN. (1≤N≤1051 \le N \le 10^5)

The next NN lines each contain the name of one entrant.

The following N−1N-1 lines each contain the name of one runner who finished.

Each name is a string of lowercase letters with length between 1 and 20, inclusive.

Two entrants may share the same name.

Output

Print the name of the entrant who did not finish the marathon.

Examples4

  1. Example 1

    Input
    3
    leo
    kiki
    eden
    eden
    kiki
    
    Expected output
    leo
    
  2. Example 2

    Input
    5
    marina
    josipa
    nikola
    vinko
    filipa
    josipa
    filipa
    marina
    nikola
    
    Expected output
    vinko
    
  3. Example 3

    Input
    4
    mislav
    stanko
    mislav
    ana
    stanko
    ana
    mislav
    
    Expected output
    mislav
    
  4. Example 4

    Input
    1
    solo
    
    Expected output
    solo