import java.io.*; import java.util.*; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N=sc.nextInt(); HashSet set=new HashSet<>(); HashSet ans=new HashSet<>(); String[] A=new String[N]; String[] B=new String[N]; for(int i=0;i