#include <bits/stdc++.h>
using namespace std;
const int INF = 100000000;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int b[8];
  int hoge = 0;
  for (int i = 0; i < 8; ++i) b[i] = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] < 400)
      b[0] = 1;
    else if (a[i] < 800)
      b[1] = 1;
    else if (a[i] < 1200)
      b[2] = 1;
    else if (a[i] < 1600)
      b[3] = 1;
    else if (a[i] < 2000)
      b[4] = 1;
    else if (a[i] < 2400)
      b[5] = 1;
    else if (a[i] < 2800)
      b[6] = 1;
    else if (a[i] < 3200)
      b[7] = 1;
    else
      hoge++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i)
    if (b[i]) ans++;
  cout << max(ans, 1) << " " << min(8, ans + hoge) << endl;
  return 0;
}
