# coding: utf-8 A = input() B = input() for i in A: B = B.replace(i,"",1) if B == "": print("YES") else: print("NO")