#include #include #define MAX 200000 using namespace std; int main(int argc, char const *argv[]) { int n,arr[MAX],on=0,tw=0,th=0,fo=0,fi=0,ans; cin>>n; for (size_t i = 0; i < n; i++) { cin>>arr[i]; } for (size_t i = 0; i < n; i++) { /* code */ switch(arr[i]) { case 1: on++;break; case 2: tw++;break; case 3: th++;break; case 4: fo++;break; case 5: fi++;break; } } //cout<=tw && on>=th && on>=fo && on>=fi) ans=1; else if(tw>=on && tw>=th && tw>=fo && tw>=fi) ans=2; else if(th>=tw && th>=on && th>=fo && th>=fi) ans=3; else if(fo>=tw && fo>=th && fo>=on && fo>=fi) ans=4; else ans=5; cout<