package main

import (
	"fmt"
)

func main() {
	var n int
	fmt.Scanf("%d", &n)

	rating := scanIntSlice(n)
	colors := map[int]struct{}{}
	experts := 0
	for _, r := range rating {
		if r >= 3200 {
			experts++
		} else {
			colors[r/400] = struct{}{}
		}
	}

	col := 1
	if len(colors) != 0 {
		col = len(colors)
	}
	fmt.Printf("%d %d", col, col+experts)
}

func scanIntSlice(size int) []int {
	input := []int{}
	for i := 0; i < size; i++ {
		var in int
		fmt.Scanf("%d", &in)
		input = append(input, in)
	}
	return input
}
