from collections import Counter
input()
rates = Counter(map(lambda a: int(a) // 400, input().split()))
over3199 = rates[8]
colors = len(rates) - bool(over3199)
print(max(1, colors), colors + over3199)
