import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; public class Main { public static void main(String[] args) { BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in)); try { String a = stdReader.readLine(); String b = stdReader.readLine(); ArrayList array = new ArrayList<>(); HashMap hashMap = new HashMap<>(); int num = 0; for(int i=0;i hashMap2 = new HashMap<>(); for(int i=0;i