Letter(翻译)

来源:https://codeforces.com/contest/43/problem/B

 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。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值