#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1e9 + 7;
const ll INF = 1 << 30;
const ll INF2 = 9e18;
const double INF3 = 9e14;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
const int tx[8] = {-1, 0, 1, -1, 1, -1, 0, 1},
          ty[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
int main() {
  int n, a, mi = 0, ma = 0, p = 0;
  bool b[100] = {0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a / 400 == 0)
      b[0] = 1;
    else if (a / 400 == 1)
      b[1] = 1;
    else if (a / 400 == 2)
      b[2] = 1;
    else if (a / 400 == 3)
      b[3] = 1;
    else if (a / 400 == 4)
      b[4] = 1;
    else if (a / 400 == 5)
      b[5] = 1;
    else if (a / 400 == 6)
      b[6] = 1;
    else if (a / 400 == 7)
      b[7] = 1;
    else
      b[8] = 1, p++;
  }
  for (int i = 0; i < 8; i++) {
    if (b[i]) mi++, ma++;
  }
  if (b[8] && mi > 0)
    cout << mi << ' ' << ma + p << endl;
  else if (!b[8] && mi > 0)
    cout << mi << ' ' << ma << endl;
  else if (b[8] && mi == 0)
    cout << 1 << ' ' << 1 << endl;
  return 0;
}
