409816: GYM103797 C Cute Sentences
Description
The string lecture ended 15 minutes ago. As usual, student Danon is still thinking about it. He likes to come up with weird problems for his professors to solve after the classes. What intrigues him the most on this subject is palindromes. How can a sentence with an arbitrary pattern gain a higher status among other sentences just because humans found it cute!?!?
Danon decides to create his own cute pattern! He defines a cute sentence as a sentence where its first word is an acronym of the whole sentence. This means that the first word should consist of the first letter of each word of the sentence, including itself, in the order they appear, without extra letters.
Now he asks for the professor to show how to code a program that, given a sentence, tells if it's cute or not. But the strings professor is Navarrosaur, who just turned 160 million years old, and has no energy to make this code. Thus, he gives this task to you!
The first line contains a single integer $$$N$$$ ($$$0 < N \leq 100$$$) — the number of words in the sentence.
The second line contains $$$N$$$ non-empty strings $$$s_i$$$ ($$$|s_i| \leq 100$$$) — the sentence, separated by spaces.
All the words consist only of uppercase English letters.
OutputPrint "Yes" if it's a cute sentence and "No" otherwise.
ExamplesInput3 IME MELHOR ENGENHARIAOutput
YesInput
2 IME MITOOutput
NoInput
3 ITA TUDO MELHOROutput
NoInput
5 AMAN MUITO ACIMA NESSA PARADAOutput
No