public static void main(String[] args) throws IOException {
		BufferedReader in  = new BufferedReader(new InputStreamReader(System.in));
		String firstStr = in.readLine();
		String secondStr = in.readLine();
		
		isAnagram(firstStr, secondStr);
	
	}