#include int main(){ int n; int count[5] = {0}; scanf("%d", &n); for (int i = 0; i < n; i++) { int temp = 0; scanf("%d", &temp); count[temp - 1]++; } int max = 0, index = 0; for (int i = 0; i < 5; i++) if (max < count[i]) { max = count[i]; index = i; } printf("%d", index + 1); return 0; }