#include <bits/stdc++.h>
using namespace std;
int n, a, b[9];
inline void check(int x) {
  if (x >= 1 && x <= 399)
    b[1] = 1;
  else if (x >= 400 && x <= 799)
    b[2] = 1;
  else if (x >= 800 && x <= 1199)
    b[3] = 1;
  else if (x >= 1200 && x <= 1599)
    b[4] = 1;
  else if (x >= 1600 && x <= 1999)
    b[5] = 1;
  else if (x >= 2000 && x <= 2399)
    b[6] = 1;
  else if (x >= 2400 && x <= 2799)
    b[7] = 1;
  else if (x >= 2800 && x <= 3199)
    b[8] = 1;
  else
    b[0]++;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    check(a);
  }
  int ans = 0;
  for (int i = 1; i <= 8; i++)
    if (b[i]) ans++;
  cout << ans << " ";
  ans = (ans + b[0] > 8) ? 8 : ans + b[0];
  cout << ans;
  return 0;
}
