#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (int)n; i++) cin >> a[i];
  vector<int> color(9, 0);
  for (int i = 0; i < (int)n; i++) {
    if (a[i] <= 399)
      color[0]++;
    else if (a[i] <= 799)
      color[1]++;
    else if (a[i] <= 1199)
      color[2]++;
    else if (a[i] <= 1599)
      color[3]++;
    else if (a[i] <= 1999)
      color[4]++;
    else if (a[i] <= 2399)
      color[5]++;
    else if (a[i] <= 2799)
      color[6]++;
    else if (a[i] <= 3199)
      color[7]++;
    else if (a[i] >= 3200)
      color[8]++;
  }
  int cnt = 0;
  for (int i = 0; i < (int)8; i++) {
    if (color[i] != 0) cnt++;
  }
  if (cnt == 0)
    cout << 1 << " ";
  else
    cout << cnt << " ";
  if (color[8] + cnt < 8)
    cout << color[8] + cnt << endl;
  else
    cout << 8 << endl;
}
