import std.stdio, std.string, std.conv, std.range, std.array, std.algorithm;
import std.uni, std.math, std.container, std.typecons, std.typetuple;
import core.bitop, std.datetime;

immutable long mod = 10^^9 + 7;

void main(){
    auto col = new int[](8);

    int n = readln.chomp.to!int;
    auto a = readln.split.to!(int[]);

    int over = 0;

    foreach(ai ; a){
        if(ai >= 3200){
            over += 1;
        }
        else {
            col[ai / 400] = 1;
        }
    }

    auto mina = sum(col);

    if (mina == 0){
        mina = 1;
    }
    auto maxa = sum(col) + over;

    writeln(mina, " ", maxa);
}


void readVars(T...)(auto ref T args){
    auto line = readln.split;
    foreach(ref arg ; args){
        arg = line.front.to!(typeof(arg));
        line.popFront;
    }
    if(!line.empty){
        throw new Exception("args num < input num");
    }
}