#include using namespace std; int main(){ int types_i,n,i,max,mode,swap; cin >> n; vector types(n); vector count(n); for(i = 1; i <= 5; i++) count[i]=0; for(types_i = 1; types_i <= n; types_i++){ cin >> types[types_i]; count[types[types_i]]++; } max=count[5]; for(i=5;i>=1;i--){ if(count[i]>=max){ max=count[i]; mode=i; } } cout<