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