By Kay Akashi
Kay is struggling with memorising the medical terms he learnt at his clinical workshop. Now he has to remember the term that consists of words. To facilitate memorisation, Kay generated an acronym of the term, which is given as . Check if is really a proper acronym of the term.
Note that, acronym is an abbreviation formed from the initial letters of other words and pronounced as a word.
. The length of each word in the medical term never exceeds . It is guaranteed that the initial letter of each word is capitalised.
The first line of input contains an integer, . The second line of input contains words which compose a name of the medical term. The third line of input conatins a though-to-be proper acronym, .
If is a proper acronym, output "Yes". Otherwise, output "No".
3
Acute Mountain Sickness
AMS
Yes
The acronym for Acute Mountain Sickness is AMS. Kay also gave AMS as . It is clearly correct.
3
Computerised Axial Tomography
DOG
No
The acronym for Computerised Axial Tomography is CAT. However Kay gave DOG. It is incorrect.