#!/bin/python import sys n = int(raw_input().strip()) types = map(int, raw_input().strip().split(' ')) # your code goes here a=[0]*5 m=0 k=0 for i in xrange(n): a[types[i]-1]+=1 for i in xrange(5): if m