using System; using System.Collections.Generic; class yukicoder { static void Main(string[] args) { var r = new Reader(); var A = r.next(); var B = r.next(); var list = new List(); foreach ( var c in B ) list.Add(c); foreach(var c in A ) { if ( list.Contains(c) ) { list.Remove(c); } else { Console.WriteLine("NO"); return; } } Console.WriteLine("YES"); } } class Reader { string[] s; int i; char[] cs = new char[] { ' ' }; public Reader() { s = new string[0]; i = 0; } public string next() { if ( i < s.Length ) return s[i++]; var input = Console.ReadLine(); while ( input == "" ) input = Console.ReadLine(); s = input.Split(cs, StringSplitOptions.RemoveEmptyEntries); i = 0; return next(); } }