package main

import "fmt"

func main() {
    var N, v, min, max int
    var rate [9]int

    fmt.Scanf("%d", &N)

    for i := 0; i < N; i++ {
        fmt.Scanf("%d", &v)
        rate[v/400]++
    }
    for i := 0; i < 8; i++ {
        if rate[i] > 0 {
            min++
        }
    }
    max = min + rate[8]
    if min == 0 {
        min = 1
    }
    fmt.Printf("%d %d\n", min, max)
}