using System; using System.Linq; public class yukicoder{ public static void Main(){ char[] a = Console.ReadLine().ToCharArray(); char[] b = Console.ReadLine().ToCharArray(); Array.Sort(a); Array.Sort(b); string c = new string(a); string d = new string(b); string answer; if(c == d) { answer = "YES"; } else { answer = "NO"; } Console.WriteLine(answer); } }