Each pair of consecutive words in the following word sequence has one letter in common (marked with colors).

REENJOYED
JIUJITSUS
DUNDREARY
SHINTOISM
PRECOLOUR

If you string together the common letters of each pair of consecutive words, you'll get the name of the Roman goddess JUNO1.

Input

A line containing a number $$t \in \mathbb{N}$$ (with $$t \geq 2$$). This is followed by $$t$$ words, each on a separate line, that only contain uppercase and lowercase letters. Each pair of consecutive words has one letter in common.

Output

The word (in uppercase letters) obtained by stringing together the common letters of each pair of consecutive words. In determining common letters, no distinction must be made between uppercase and lowercase letters.

Example

Input:

5
reenjoyED
Jiujitsus
dundreary
SHINTOISM
precolour

Output:

JUNO