问题 A: Alphabet Cookies

问题 A: Alphabet Cookies

时间限制: 1 Sec  内存限制: 128 MB
提交: 100  解决: 56
[状态] [讨论版] [提交] [命题人:]
题目描述
  Kitty likes cookies very much, and especially the alphabet cookies. Now, she get some alphabet cookies, and she wants to select some of them to spell some words.
The easy task for you, is to determine that whether she can spell the word she wants.

       
输入

The input contains several test cases.

Each test case contains an integer N ( 0 < N ≤ 100 ) in a line.

And followed a line with N capital letters, means the cookies she has.

Then the last line is a word with capital letters. And the words length isnt more than N.

输出

One word for each test case. If she can spell the word by these letters, please output “Yes”, nor output “No”.

样例输入 Copy
7
ARDHPYP
HAPPY
6
ARDHPY
HAPPY
样例输出 Copy
Yes
No