#!/bin/python3 import sys n = int(input().strip()) types = list(map(int, input().strip().split(' '))) type=[0]*5 for i in range(0,n): if(types[i]==1): type[0]+=1 elif(types[i]==2): type[1]+=1 elif(types[i]==3): type[2]+=1 elif(types[i]==4): type[3]+=1 elif(types[i]==5): type[4]+=1 print(max(type)+1) # your code goes here