import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); ArrayList<Integer>arr=new ArrayList<Integer>(); while(n-->0){ arr.add(sc.nextInt()); } int m=sc.nextInt(); if(arr.contains(m)) System.out.println(arr.indexOf(m)+1); else System.out.println(-1); } }
0.0分
2 人评分