import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); ArrayList> num = new ArrayList>(); ArrayList ans = new ArrayList<>(); for(int i=0;i()); num.get(i).add(sc.nextInt()); } ans.add(sc.next()); } for(int i=0;i<10;i++){ boolean flagg=true; tt:for(int j=0;j