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