a = list(input()) b = list(input()) for b in b: if b in a: a.remove(b) else: break if a == []: print('YES') else: print('NO')