import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] types = new int[n]; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); } int t1=0,t2=0,t3=0,t4=0,t5=0; for(int i=0;imax){ max=count[i]; } } if(max==count[0]){ System.out.println("1"); } else if(max==count[1]){ System.out.println("2"); } else if(max==count[2]){ System.out.println("3"); } else if(max==count[3]){ System.out.println("4"); } else{ System.out.println("5"); } } }