#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool color[8] = {};
  int free = 0;
  for (int i = (0); i < (int)(n); i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a < 8)
      color[a] = 1;
    else
      free++;
  }
  int ans = 0;
  for (int i = (0); i < (int)(8); i++) ans += color[i];
  cout << ans << " " << ans + free << endl;
  return 0;
}
