#include <bits/stdc++.h>
using namespace std;
const long long mod = 100000000000;
int n;
int a;
int main() {
  bool co[8];
  int count = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a <= 399)
      co[0] = 1;
    else if (a <= 799)
      co[1] = 1;
    else if (a <= 1199)
      co[2] = 1;
    else if (a <= 1599)
      co[3] = 1;
    else if (a <= 1999)
      co[4] = 1;
    else if (a <= 2399)
      co[5] = 1;
    else if (a <= 2799)
      co[6] = 1;
    else if (a <= 3199)
      co[7] = 1;
    else
      count += 1;
  }
  int f1 = 0, f0 = 0;
  for (int i = 0; i < 8; i++) {
    if (co[i] == 1)
      f1 += 1;
    else
      f0 += 1;
  }
  cout << f1 << " " << f1 + min(f0, count) << endl;
}
