#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<bool> rate(8, false);
  int extra = 0;
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    int grade = a / 400;
    if (grade <= 7) {
      rate[grade] = true;
    } else {
      extra++;
    }
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++)
    if (rate.at(i)) ans++;
  int ans_max, ans_min;
  if (ans == 0) {
    ans_max = min(extra, 8);
    ans_min = 1;
  } else {
    ans_max = ans + min(extra, 8 - ans);
    ans_min = ans;
  }
  cout << ans_min << " " << ans_max << endl;
}
