if __name__=="__main__":
    N = int(raw_input())
    a = map(int, raw_input().split())
    s = set()
    c = 0
    for x in a:
        x = int(x/400)
        if x>=3200:
            c += 1
        else:
            s.add(x)
    print "{} {}".format(len(s), len(s)+c)