Obscene Words Filter
hard
https://acm.timus.ru/problem.aspx?space=1&num=1269
Constraints
Check Link
Format
Input
Check Link
Output
Check Link
Example
Sample Input
5
dear
sweetie
angel
dream
baby
8
Had I the heavens'' embroidered cloths,
Enwrought with golden and silver light,
The blue and the dim and the dark cloths
Of night and light and the half-light,
I would spread the cloths under your feet:
But I, being poor, have only my dreams;
I have spread my dreams under your feet;
Tread softly because you tread on my dreams.
Sample Output
6 33