# -*- coding: utf-8 -*-
_ = input()
a = list(map(int, input().split()))
rank_set={x//400 for x in a if x < 3200}
cnt_over3200=len(list(filter(lambda x: x>=3200, a)))
ans=len(rank_set)
if ans == 0:
    print('{} {}'.format(1, min(cnt_over3200, 8)))
else:
    print('{} {}'.format(ans, min(ans+cnt_over3200, 8)))
