#include <bits/stdc++.h>
using namespace std;
int main() {
  bool _399 = false, _799 = false, _1199 = false, _1599 = false, _1999 = false,
       _2399 = false, _2799 = false, _3199 = false;
  int min = 0;
  int max = 0;
  int n = 0;
  cin >> n;
  int ratings[n];
  for (int i = 0; i < n; i++) cin >> ratings[i];
  for (int i = 0; i < n; i++) {
    if (ratings[i] >= 1 && ratings[i] < 400 && _399 == false) {
      min++;
      max++;
      _399 = true;
    } else if (ratings[i] >= 400 && ratings[i] < 800 && _799 == false) {
      min++;
      max++;
      _399 = true;
    } else if (ratings[i] >= 800 && ratings[i] < 1200 && _1199 == false) {
      min++;
      max++;
      _1199 = true;
    } else if (ratings[i] >= 1200 && ratings[i] < 1600 && _1599 == false) {
      min++;
      max++;
      _1599 = true;
    } else if (ratings[i] >= 1600 && ratings[i] < 2000 && _1999 == false) {
      min++;
      max++;
      _1999 = true;
    } else if (ratings[i] >= 2000 && ratings[i] < 2400 && _2399 == false) {
      min++;
      max++;
      _2399 = true;
    } else if (ratings[i] >= 2400 && ratings[i] < 2800 && _2799 == false) {
      min++;
      max++;
      _2799 = true;
    } else if (ratings[i] >= 2800 && ratings[i] < 3200 && _3199 == false) {
      min++;
      max++;
      _3199 = true;
    } else if (ratings[i] >= 3200) {
      if (!_399 && !_799 && !_1199 && !_1599 && !_1999 && !_2399 && !_2799 &&
          !_3199)
        min++;
      max++;
    }
  }
  cout << min << " " << max;
  return 0;
}
