← 返回题目列表

Codeforces · 43/B

B. 信

中文机器翻译题面 查看原题

Vasya 决定写一封匿名信,将报纸标题中的字母剪掉。他知道他想要发送的标题 s1 和文本 s2。 Vasya 只能使用每个标题字母一次。 Vasya 不必从标题中删除空格 - 他只需留下一些空白来标记它们。帮助他;看看他是否能写出所需的文字。

输入

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

输出

如果 Vasya 可以写给定的匿名信,则打印 YES,否则打印 NO

示例

输入 #1

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

输出 #1

NO

输入 #2

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

输出 #2

YES

输入 #3

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

输出 #3

NO

输入#4

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

输出#4

YES