#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (int)n; i++) cin >> a[i];
  vector<int> c;
  c.resize(9);
  for (int i = 0; i < (int)n; i++) {
    if (a[i] <= 399)
      c[0] = 1;
    else if (a[i] <= 799)
      c[1] = 1;
    else if (a[i] <= 1199)
      c[2] = 1;
    else if (a[i] <= 1599)
      c[3] = 1;
    else if (a[i] <= 1999)
      c[4] = 1;
    else if (a[i] <= 2399)
      c[5] = 1;
    else if (a[i] <= 2799)
      c[6] = 1;
    else if (a[i] <= 3199)
      c[7] = 1;
    else
      c[8]++;
  }
  int min = 0;
  int max = 0;
  for (int i = 0; i < (int)8; i++) {
    if (c[i] == 1) min++;
  }
  if (c[8] != 0) min++;
  max = min + c[8];
  cout << min << " " << max << endl;
  return 0;
}
