#include <bits/stdc++.h>
using namespace std;
bool visited[8];
int get(int rating) {
  if (rating <= 399)
    return 0;
  else if (rating <= 799)
    return 1;
  else if (rating <= 1199)
    return 2;
  else if (rating <= 1599)
    return 3;
  else if (rating <= 1999)
    return 4;
  else if (rating <= 2399)
    return 5;
  else if (rating <= 2799)
    return 6;
  else if (rating <= 3199)
    return 7;
  return 8;
}
int main(void) {
  cin.tie(NULL);
  ios_base::sync_with_stdio(false);
  int N;
  cin >> N;
  int temp;
  int ret = 0;
  int sub = 0;
  for (int i = 0; i < N; i++) {
    cin >> temp;
    auto cur = get(temp);
    if (cur < 8 && !visited[cur]) {
      ret += 1;
      visited[cur] = true;
    }
    if (cur == 8) sub += 1;
  }
  cout << ret << " ";
  ret += sub;
  if (ret > N) ret = N;
  cout << ret;
  return 0;
}
