import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    readint;
    auto a = readints;

    auto d = new int[8];
    int redOver = 0; // (>= 3200)
    foreach (x; a) {
        if (x < 3200) d[x / 400]++;
        else redOver++;
    }

    int x = cast(int) d.count!(e => e > 0);
    int minAns = x;
    if (minAns == 0 && redOver > 0) minAns++;
    int maxAns = x + redOver;
    writeln(minAns, " ", maxAns);
}
