#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  bool colors[8] = {false};
  int target = 0;
  int index;
  for (int i = 0; i < N; i++) {
    if (a[i] < 400) {
      index = 0;
    } else if (a[i] < 800) {
      index = 1;
    } else if (a[i] < 1200) {
      index = 2;
    } else if (a[i] < 1600) {
      index = 3;
    } else if (a[i] < 2000) {
      index = 4;
    } else if (a[i] < 2400) {
      index = 5;
    } else if (a[i] < 2800) {
      index = 6;
    } else if (a[i] < 3200) {
      index = 7;
    } else if (a[i] >= 3200) {
      target++;
    }
    colors[index] = true;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i]) ans++;
  }
  cout << (ans == 0 ? 1 : ans) << " " << (ans + target <= 8 ? ans + target : 8)
       << endl;
  return 0;
}
