#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pint = pair<int, int>;
const int MAX = 9;
const int COLORS = 8;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> v(MAX);
  for (int i = (0); i < (int)(n); i++) {
    cin >> a[i];
    int color;
    if (1 <= a[i] && a[i] <= 399)
      color = 0;
    else if (400 <= a[i] && a[i] <= 799)
      color = 1;
    else if (800 <= a[i] && a[i] <= 1199)
      color = 2;
    else if (1200 <= a[i] && a[i] <= 1599)
      color = 3;
    else if (1600 <= a[i] && a[i] <= 1999)
      color = 4;
    else if (2000 <= a[i] && a[i] <= 2399)
      color = 5;
    else if (2400 <= a[i] && a[i] <= 2799)
      color = 6;
    else if (2800 <= a[i] && a[i] <= 3199)
      color = 7;
    else if (3200 <= a[i])
      color = 8;
    v[color]++;
  }
  int color = 0;
  for (int i = (0); i < (int)(COLORS); i++)
    if (v[i] > 0) color++;
  if (v[COLORS] == 0) {
    cout << color << " " << color << endl;
    return 0;
  }
  if (v[COLORS] > 0) {
    int mi = max(color, color - v[COLORS]);
    int ma = min(COLORS, color + v[COLORS]);
    cout << mi << " " << ma << endl;
  }
  return 0;
}
