#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; ++i) cin >> a[i];
  vector<bool> color(8, false);
  int over3200 = 0;
  for (int i = 0; i < N; ++i) {
    if (1 <= a[i] && a[i] <= 399) {
      color[0] = true;
    } else if (400 <= a[i] && a[i] <= 799) {
      color[1] = true;
    } else if (800 <= a[i] && a[i] <= 1199) {
      color[2] = true;
    } else if (1200 <= a[i] && a[i] <= 1599) {
      color[3] = true;
    } else if (1600 <= a[i] && a[i] <= 1999) {
      color[4] = true;
    } else if (2000 <= a[i] && a[i] <= 2399) {
      color[5] = true;
    } else if (2400 <= a[i] && a[i] <= 2799) {
      color[6] = true;
    } else if (2800 <= a[i] && a[i] <= 3199) {
      color[7] = true;
    } else {
      over3200++;
    }
  }
  int cnt = count((color).begin(), (color).end(), true);
  int minc = (cnt == 0 ? over3200 : cnt);
  int maxc = cnt + over3200;
  cout << minc << " " << maxc << endl;
}
