#include <bits/stdc++.h>
using namespace std;
int cnt = 0, ans = 0, n;
bool b[8];
int main() {
  cin >> n;
  memset(b, 0, sizeof(b));
  for (int i = 0; i < n; ++i) {
    int a, now;
    cin >> a;
    if (1 <= a && a <= 399)
      now = 0;
    else if (400 <= a && a <= 799)
      now = 1;
    else if (800 <= a && a <= 1199)
      now = 2;
    else if (1200 <= a && a <= 1599)
      now = 3;
    else if (1600 <= a && a <= 1999)
      now = 4;
    else if (2000 <= a && a <= 2399)
      now = 5;
    else if (2400 <= a && a <= 2799)
      now = 6;
    else if (2800 <= a && a <= 3199)
      now = 7;
    else {
      cnt++;
      continue;
    }
    if (!b[now]) {
      ans++;
      b[now] = true;
    }
  }
  cout << ans + (cnt == n) << " " << min(8, ans + cnt) << endl;
  return 0;
}
