#!/bin/python import sys n = int(raw_input().strip()) types = map(int, raw_input().strip().split(' ')) # your code goes here l=[1,2,3,4,5] max=0 ans=0 for i in l: if(max