Letter(翻译)

编程入门 行业动态 更新时间:2024-10-05 07:20:36

<a href=https://www.elefans.com/category/jswz/34/1712101.html style=Letter(翻译)"/>

Letter(翻译)

来源:

 Letter

 

Vasya decided to write an anonymous letter cutting the letters out of a newspaper heading. He knows heading s1 and text s2 that he wants to send. Vasya can use every single heading letter no more than once. Vasya doesn't have to cut the spaces out of the heading — he just leaves some blank space to mark them. Help him; find out if he will manage to compose the needed text.

Input

The first line contains a newspaper heading s1. The second line contains the letter text s2. s1 и s2 are non-empty lines consisting of spaces, uppercase and lowercase Latin letters, whose lengths do not exceed 200 symbols. The uppercase and lowercase letters should be differentiated. Vasya does not cut spaces out of the heading.

Output

If Vasya can write the given anonymous letter, print YES, otherwise print NO

Examples

input

Copy

Instead of dogging Your footsteps it disappears but you dont notice anything
where is your dog

output

Copy

NO

input

Copy

Instead of dogging Your footsteps it disappears but you dont notice anything
Your dog is upstears

output

Copy

YES

input

Copy

Instead of dogging your footsteps it disappears but you dont notice anything
Your dog is upstears

output

Copy

NO

input

Copy

abcdefg hijk
k j i h g f e d c b a

output

Copy

YES

翻译:

瓦夏决定写一封匿名信,把这些信从报纸的标题中删掉。他知道航向s1和文本s2他想发送。瓦夏可以使用每个标题字母不超过一次。Vasya不必从标题中剪掉空格 - 他只是留下一些空白区域来标记它们。帮助他;看看他是否能设法撰写所需的文本。

输入

第一行包含报纸标题s1.第二行包含字母文本s2.ss2是由空格、大写和小写拉丁字母组成的非空行,其长度不超过 200 个符号。大写和小写字母应区分。Vasya 不会从标题中删去空格。

输出

如果瓦夏可以写出给定的匿名信,请打印YES,否则打印NO。

 

更多推荐

Letter(翻译)

本文发布于:2024-02-28 07:45:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1768709.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Letter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!