#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> RATE(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8)
      RATE.at(8)++;
    else
      RATE.at(a)++;
  }
  int MIN = 0;
  for (int i = 0; i < 8; i++)
    if (0 < RATE.at(i)) MIN++;
  int MAX = MIN;
  MAX = min(8, MAX + RATE.at(8));
  cout << MIN << ' ' << MAX << endl;
  return 0;
}
