l=[0]*26 for e in list(input()): l[ord(e)-ord("a")]+=1 for e in list(input()): l[ord(e)-ord("a")]-=1 print("YES" if l.count(0)==26 else "NO")