package main

import (
	"fmt"
	"os"
)

func main() {
	var num int
	_, err := fmt.Fscanf(os.Stdin, "%d", &num)
	if err != nil {
		panic(err)
	}

	categories := make([]int, 8)
	wildcard := 0
	for i := 0; i < num; i++ {
		var n int
		_, err = fmt.Fscanf(os.Stdin, "%d", &n)
		if err != nil {
			panic(err)
		}

		if 3200 < n && n <= 4800 {
			n = 3200
		}

		cat := int(n / 400)
		if cat < 8 {
			categories[cat]++
		} else {
			wildcard++
		}
	}

	min, max := 0, 0
	for _, v := range categories {
		if v > 0 {
			min++
		}
	}
	max = min + wildcard
	if wildcard > 0 && min == 0 {
		min = 1
	}
	if max > 8 {
		max = 8
	}
	fmt.Printf("%d %d", min, max)
}
