#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int c[8] = {0};
  int o = 0;
  int a = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x >= 3200) o++;
    if (c[x / 400] == 0) {
      a++;
      c[x / 400] = 1;
    }
  }
  cout << a << " " << a + o << endl;
  return 0;
}
