import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); char a[]=sc.next().toCharArray(); char b[]=sc.next().toCharArray(); Arrays.sort(a); Arrays.sort(b); String s="YES"; for(int i=0;i