package main

import (
	"fmt"
)

func main() {
	var n, a int
	fmt.Scan(&n)

	var colors [8]bool
	var f int
	for i := 0; i < n; i++ {
		fmt.Scan(&a)
		if a < 3200 {
			colors[a/400] = true
		} else {
			f++
		}
	}
	var cmin, cmax int
	for _, b := range colors {
		if b {
			cmin++
		}
	}
	cmax = min(cmin+f, 8)
	fmt.Println(cmin, cmax)
}

func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}
