#include <bits/stdc++.h>
using namespace std;
int main() {
  int col[9];
  for (int i = 0; i < (9); i++) col[i] = 0;
  int n;
  cin >> n;
  for (int i = 0; i < (n); i++) {
    int t;
    cin >> t;
    if (t >= 3200)
      col[8]++;
    else
      col[t / 400]++;
  }
  int ans = 0, ansmax, ansmin;
  for (int i = 0; i < (8); i++)
    if (col[i] > 0) ans++;
  ansmax = ans;
  ansmin = ans;
  if (col[8] > 0 and ans == 0) ansmin++;
  ansmax = min(8, ans + col[8]);
  cout << ansmin << " " << ansmax << endl;
  return 0;
}
