import java.util.Scanner; public class Yukicoder69 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); for (int i = 0; i < a.length(); i++) { if (b.contains("" + a.charAt(i))) b = b.substring(0, b.indexOf(a.charAt(i))) + b.substring(b.indexOf(a.charAt(i)) + 1, b.length()); } if (b.equals("")) { System.out.println("YES"); } else { System.out.println("NO"); } } }