#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int color[8];
  int free = 0;
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    if (ai < 3200) {
      color[ai / 400] = 1;
    } else
      free++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] == 1) ans++;
  }
  int max, min;
  if (ans > 0)
    min = ans;
  else
    min = 1;
  if (free + ans <= 8) {
    max = ans + free;
  } else if (free + ans > 9) {
    max = 8;
  }
  cout << min << " " << max << endl;
  return 0;
}
