import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { String a = sc.next(); String b = sc.next(); int[] na = new int[26]; int[] nb = new int[26]; boolean flag = true; for(int i=0;i