#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int color[10];
  for (int i = 1; i <= 9; i++) {
    color[i] = 0;
  }
  for (int i = 0; i < (int)(N); i++) {
    int a;
    int flag = 0;
    cin >> a;
    for (int i = 1; i <= 8; i++) {
      if (a < i * 400) {
        color[i]++;
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      color[9]++;
    }
  }
  int ans_min = 0;
  int ans_max = 0;
  for (int i = 1; i <= 8; i++) {
    if (color[i] != 0) {
      ans_max++;
      ans_min++;
    }
  }
  for (int i = 1; i <= color[9]; i++) {
    if (ans_max == 8) break;
    ans_max++;
  }
  cout << ans_min << " " << ans_max << "\n";
  return 0;
}
