import std.algorithm;
import std.array;
import std.ascii;
import std.container;
import std.conv;
import std.math;
import std.numeric;
import std.range;
import std.stdio;
import std.string;
import std.typecons;
void log(A...)(A arg) { stderr.writeln(arg); }
int size(T)(in T s) { return cast(int)s.length; }

void main() {
    int N; readf("%d\n", &N);
    auto A = readln.chomp.split(" ").map!(to!int).array;
    auto c = new int[9];
    foreach (a; A) {
        int x = min(a, 3200);
        c[x / 400] += 1;
    }
    int ans = 0;
    foreach (i; 0 .. 8) {
        if (c[i] > 0) ans++;
    }
    if (c[8] == 0) {
        writefln("%s %s", ans, ans);
    } else {
        int ans_min = ans, ans_max = ans + c[8];
        if (ans == 0) {
            ans_min = 1;
        }
        writefln("%s %s", ans_min, ans_max);
    }
}
