#include <bits/stdc++.h>
using namespace std;
int main() {
  int N = 0;
  int cnt = 0;
  cin >> N;
  vector<int> DATA(N);
  vector<int> color(9);
  for (int(i) = int(0); (i) < int(N); (i)++) {
    cin >> DATA[i];
    if (DATA[i] / 400 > 9) {
      color[8]++;
    } else {
      color[(DATA[i] / 400)]++;
    }
  }
  for (int(i) = int(0); (i) < int(8); (i)++) {
    if (color[i] != 0) {
      cnt++;
    }
  }
  cout << cnt << " ";
  cout << ((8) < (cnt + color[8]) ? (8) : (cnt + color[8])) << endl;
  return 0;
}
