LearnPy Hub
← Tuples & Sets problems
Medium

In Every Line

Read n, then n lines of words. Print the words that appear in every line, sorted, or None.

Input

n, then n lines.

Output

One line.

Sample 1

Input
3
a b c
b c d
c b e
Output
b c

Sample 2

Input
1
x y
Output
x y
solution.py
Output appears here
In Every Line · Python practice problem · LearnPy Hub