#include using namespace std; int main(){ int n,type,max=-1; cin >> n; vector types(n); vectorfreq(6,0); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; freq[types[types_i]]++; if(freq[types[types_i]]>max){ max=freq[types[types_i]]; type=types[types_i]; } else if(freq[types[types_i]]==max){ if(types[types_i]