#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  vector<int> a;
  int count[9] = {};
  cin >> N;
  for (int i = 0; i < N; i++) {
    int b;
    cin >> b;
    a.push_back(b);
  }
  for (int i = 0; i < N; i++) {
    int x = a[i] / 400;
    if (x < 8)
      count[x]++;
    else
      count[8]++;
  }
  int ans1 = 0, ans2 = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] > 0) ans1++;
  }
  ans2 = ans1 + count[8];
  ans1 += max(count[8] - ans1, 0);
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
