from collections import Counter
N=int(input())
z=Counter([int(int(x)/400) for x in input().split()])
if 8 in z:
	print("%d %d" % (min(1, len(z)-1), len(z)-1+z[8]))
else:
	print("%d %d" % (len(z), len(z)))
