#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> color(8, 0);
  int variable = 0;
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    if (tmp < 3200)
      color[tmp / 400] = 1;
    else
      variable += 1;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++)
    if (color[i] == 1) cnt += 1;
  int ans1 = cnt, ans2 = cnt;
  ans1 = max(cnt, variable);
  ans2 = min(8, cnt + variable);
  printf("%d %d", ans1, ans2);
  return 0;
}
