#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool col[8];
  for (int i = 0; i < 8; i++) col[i] = false;
  int free = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp / 400 < 8) {
      col[tmp / 400] = true;
    } else
      free++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (col[i]) ans++;
  if (ans == 0)
    cout << 1 << " ";
  else
    cout << ans << " ";
  if (ans + free > 8)
    cout << 8 << endl;
  else
    cout << ans + free << endl;
  return 0;
}
