#include #include #include #include #include using namespace std; int type[5]; void update (int t) { switch (t) { case 1 : type[0] += 1; break; case 2 : type[1] += 1; break; case 3 : type[2] += 1; break; case 4 : type[3] += 1; break; case 5 : type[4] += 1; break; } } void printCommon () { int common; common = type[0] < type[1] ? 1 : 0; common = type[common] < type[2] ? 2 : common; common = type[common] < type[3] ? 3 : common; common = type[common] < type[4] ? 4 : common; cout << common+1 << endl; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int num; cin >> num; cin.clear (); for (int i = 0; i < num; i++) { int type; cin >> type; update(type); } printCommon(); return 0; }