#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1 << 30;
int colors[10];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8)
      colors[8]++;
    else
      colors[a] = 1;
  }
  int ans = 0;
  for (int i = 0; i < (8); i++) ans += colors[i];
  cout << ans << " " << ans + colors[8] << endl;
  return 0;
}
