#coding:utf-8 a=raw_input() b=list(raw_input()) for i in a: if i in b: b.remove(i) if not b: print 'YES' else: print 'NO'