#include #include int main(){ int numBirds, tempBird, highestCount, tempHigh; std::vector typeCount(5); std::cin >> numBirds; for(int i = 0; i < numBirds; i++) { std::cin >> tempBird; switch(tempBird) { case 1: typeCount[0]++; break; case 2: typeCount[1]++; break; case 3: typeCount[2]++; break; case 4: typeCount[3]++; break; case 5: typeCount[4]++; break; } } tempHigh = 0; for(int i = 0; i < 5; i++) { if(tempHigh < typeCount[i]) { highestCount = i + 1; tempHigh = typeCount[i]; } } std::cout << highestCount; return 0; }