#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  set<int> colors;
  int score = 0;
  int champ = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> score;
    switch (score / 400) {
      case 0:
        colors.insert(0);
        break;
      case 1:
        colors.insert(1);
        break;
      case 2:
        colors.insert(2);
        break;
      case 3:
        colors.insert(3);
        break;
      case 4:
        colors.insert(4);
        break;
      case 5:
        colors.insert(5);
        break;
      case 6:
        colors.insert(6);
        break;
      case 7:
        colors.insert(7);
        break;
      default:
        champ++;
        break;
    }
  }
  cout << colors.size() << " " << colors.size() + champ << endl;
  return 0;
}
