import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); try { String first = buff.readLine(); String second = buff.readLine(); StringBuilder build = new StringBuilder(second); for(int i = 0; i < first.length(); ++i){ char ch = first.charAt(i); if(build.indexOf(ch+"") == -1){ break; }else{ build.deleteCharAt(build.indexOf(ch+"")); } } if(build.toString().length() > 0){ System.out.println("NO"); }else{ System.out.println("YES"); } } catch (NumberFormatException e) { e.getStackTrace(); } catch (IOException e) { e.getStackTrace(); } catch (Exception e) { e.getStackTrace(); } } }