import numpy as np

if __name__ == "__main__":
    # N = int(input())
    # a = input().split()
    a = "800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990".split()

    a = list(map(int, a))
    a = np.array(a)

    colors_flag = np.zeros(8)
    other = 0
    for rate in a:
        if(rate >= 3200):
            other += 1
        elif(colors_flag[int(rate/400)] == 1):
            continue
        else:
            colors_flag[int(rate/400)] = 1

    color_num = np.sum(colors_flag)
    print(int(color_num), int(color_num + other))
