#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ cin >> n; int hist[5] = {0}; while(n > 0){ cin >> current; if(current == 1 || current == 3 || current == 5){ hist[current] += 1; } else if(current == 4){ hist[current] += 3; } } int max = hist[0]; for(int i = 0; i < n; i++){ if(max < hist[i]){ max = hist[i]; } } cout << hist[i] << endl; return 0; }