#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int color[8];
  for (int i = 0; i < (int)(8); i++) color[i] = 0;
  int rate;
  int over = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> rate;
    if (rate >= 3200)
      over++;
    else
      color[rate / 400]++;
  }
  int cnt = 0;
  for (int i = 0; i < (int)(8); i++)
    if (color[i] > 0) cnt++;
  cout << max(cnt, over) << " " << cnt + over;
}
