a,b = [input() for _ in '11'] for _ in b: a = a.replace(_,'') print('NO' if a else 'YES')