#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(9, 0);
  int tmp;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    if (tmp <= 399)
      a.at(0)++;
    else if (tmp > 399 and tmp < 800)
      a.at(1)++;
    else if (tmp > 799 and tmp < 1200)
      a.at(2)++;
    else if (tmp > 1199 and tmp < 1600)
      a.at(3)++;
    else if (tmp > 1599 and tmp < 2000)
      a.at(4)++;
    else if (tmp > 1999 and tmp < 2400)
      a.at(5)++;
    else if (tmp > 2399 and tmp < 2800)
      a.at(6)++;
    else if (tmp > 2799 and tmp < 3200)
      a.at(7)++;
    else
      a.at(8)++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (a.at(i) != 0) cnt++;
  }
  if (cnt == 0 and a.at(8) != 0)
    cout << 1 << " " << 1 << endl;
  else if (a.at(8) != 0)
    cout << cnt << " " << min(cnt + a.at(8), 8) << endl;
  else
    cout << cnt << " " << cnt << endl;
  return 0;
}
