#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> input(N, 0);
  for (int i = 0; i < N; i++) {
    cin >> input[i];
  }
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    if (input[i] < 400)
      color[0]++;
    else if (input[i] < 800)
      color[1]++;
    else if (input[i] < 1200)
      color[2]++;
    else if (input[i] < 1600)
      color[3]++;
    else if (input[i] < 2000)
      color[4]++;
    else if (input[i] < 2400)
      color[5]++;
    else if (input[i] < 2800)
      color[6]++;
    else if (input[i] < 3200)
      color[7]++;
    else
      color[8]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) ans++;
  }
  if (ans != 0) {
    if (ans < 7) cout << ans << " " << ans + color[8] << endl;
    if (ans == 7 && color[8] == 0) cout << ans << " " << ans << endl;
    if (ans == 7 && color[8] != 0) cout << ans << " " << 8 << endl;
    if (ans == 8) cout << ans << " " << 8 << endl;
  } else
    cout << 1 << " " << ans + color[8] << endl;
}
