A = list(input()) B = input() for c in B: try: A.remove(c) except: pass print('YES' if len(A)<1 else 'NO')