import sys

import numpy as np



n = int(sys.stdin.readline().rstrip())

a = np.array(sys.stdin.readline().split(), dtype=np.int64)



def main():

    res = np.bincount(np.minimum(a // 400, 8), minlength=9)

    

    ans_min = np.count_nonzero(res[:8])

    ans_max = ans_min + res[8]

    if ans_min == 0:

        ans_min = 1

 

    return ans_min, ans_max



if __name__ == '__main__':

    ans = main()

    print(*ans, sep=' ')

import sys



n, *a = list(map(int, sys.stdin.read().split()))



def main():

  cnt = [0] * 9

  for x in a:

    cnt[min(x, 3200) // 400] += 1

  mi = 0

  for x in cnt[:8]: 

    if x: mi += 1

  ma = mi + cnt[8]

  mi = max(1, mi)

  print((mi, ma))

  

if __name__ == '__main__':

  main()
import sys
import numpy as np

n = int(sys.stdin.readline().rstrip())
a = np.array(sys.stdin.readline().split(), dtype=np.int64)


def main():
    res = np.bincount(np.minimum(a // 400, 8), minlength=9)
    ans_min = np.count_nonzero(res[:8])
    ans_max = ans_min + res[8]
    if ans_min == 0:
        ans_min = 1
    return ans_min, ans_max


if __name__ == "__main__":
    ans = main()
    print(*ans, sep=" ")

import sys

n, *a = list(map(int, sys.stdin.read().split()))


def main():
    cnt = [0] * 9
    for x in a:
        cnt[min(x, 3200) // 400] += 1
    mi = 0
    for x in cnt[:8]:
        if x:
            mi += 1
    ma = mi + cnt[8]
    mi = max(1, mi)
    print((mi, ma))


if __name__ == "__main__":
    main()

-import numpy as np -n = int(sys.stdin.readline().rstrip()) -a = np.array(sys.stdin.readline().split(), dtype=np.int64) +n, *a = list(map(int, sys.stdin.read().split())) -    res = np.bincount(np.minimum(a // 400, 8), minlength=9) -    ans_min = np.count_nonzero(res[:8]) -    ans_max = ans_min + res[8] -    if ans_min == 0: -        ans_min = 1 -    return ans_min, ans_max +    cnt = [0] * 9 +    for x in a: +        cnt[min(x, 3200) // 400] += 1 +    mi = 0 +    for x in cnt[:8]: +        if x: +            mi += 1 +    ma = mi + cnt[8] +    mi = max(1, mi) +    print((mi, ma)) -    ans = main() -    print(*ans, sep=" ") +    main()