#include <bits/stdc++.h>
using namespace std;
bool Free[10];
int n, Count = 0;
int main() {
  cin >> n;
  int x;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    if (1 <= x && x <= 399) Free[1] = true;
    if (400 <= x && x <= 799) Free[2] = true;
    if (800 <= x && x <= 1199) Free[3] = true;
    if (1200 <= x && x <= 1599) Free[4] = true;
    if (1600 <= x && x <= 1999) Free[5] = true;
    if (2000 <= x && x <= 2399) Free[6] = true;
    if (2400 <= x && x <= 2799) Free[7] = true;
    if (2800 <= x && x <= 3199) Free[8] = true;
    if (x >= 3200) Count++;
  }
  int minn = 0, maxn = 0;
  for (int i = 1; i <= 8; i++)
    if (Free[i] == true) {
      minn++;
      maxn++;
    } else if (Count > 0) {
      Count--;
      maxn++;
    }
  cout << minn << ' ' << maxn;
}
