LearnPy Hub
← Arena
EasyRating 1000

Letters in Every Rock

Each rock is a word. Count the letters that appear in every rock.

Input

n, then n words.

Output

One integer.

Sample 1

Input
3
abcdde
baccd
eeabg
Output
2

Sample 2

Input
1
aab
Output
2
solution.py
Output appears here
Letters in Every Rock · Python Arena problem · LearnPy Hub