#include <bits/stdc++.h>
using namespace std;
const int inf = 1001001000;
const long long INF = 1LL << 60;
const int MOD = (int)1e9 + 7;
int main() {
  int N;
  cin >> N;
  vector<bool> colors(8);
  int additional = 0;
  for (int i = 0; i < N; ++i) {
    int rate;
    cin >> rate;
    if (rate >= 3200) {
      additional++;
      continue;
    }
    colors[rate / 400] = true;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i)
    if (colors[i]) ans++;
  cout << ans << ' ' << ans + additional << endl;
  return 0;
}
