import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int C1 = stdIn.nextInt(); int C2 = 0; int cou1 = 1; int cou2 = 0; for (int i = 0; i < n - 1; i++) { int in = stdIn.nextInt(); if (C1 == in) { cou1++; } else { C2 = in; cou2++; } } int n2=n*2-2; int T=0; int K=0; if(C2==0){ if(n2==C1){ T=cou1; } else{ K=cou1; } } else if(C1