package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	N := ReadInt()
	a := ReadInts(N)
	colors := make([]bool, 8)
	wcount := 0
	for _, ai := range a {
		color := ai / 400
		if color >= 8 {
			wcount++
		} else {
			colors[color] = true
		}
	}
	min := 0
	for _, b := range colors {
		if b {
			min++
		}
	}
	max := min
	if min == 0 && wcount > 0 {
		min = 1
	}
	max = Min(8, max+wcount)
	fmt.Println(min, max)
}

func Min(xs ...int) int {
	min := xs[0]
	for _, x := range xs[1:] {
		if min > x {
			min = x
		}
	}
	return min
}

var reader = bufio.NewReader(os.Stdin)

func Scan(a ...interface{}) {
	if _, err := fmt.Fscan(reader, a...); err != nil {
		panic(err)
	}
}
func ReadInt() (i int)       { Scan(&i); return }
func ReadString() (s string) { Scan(&s); return }
func ReadInts(n int) []int {
	v := make([]int, n)
	for i := 0; i < n; i++ {
		Scan(&v[i])
	}
	return v
}
