#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, tmp, ans_max = 0, ans_min = 0;
  bool colors[8];
  for (int i = 0; i < 8; i++) {
    colors[i] = false;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    if (1 <= tmp and tmp <= 399 and colors[0] == false)
      colors[0] = true;
    else if (400 <= tmp and tmp <= 799 and colors[1] == false)
      colors[1] = true;
    else if (800 <= tmp and tmp <= 1199 and colors[2] == false)
      colors[2] = true;
    else if (1200 <= tmp and tmp <= 1599 and colors[3] == false)
      colors[3] = true;
    else if (1600 <= tmp and tmp <= 1999 and colors[4] == false)
      colors[4] = true;
    else if (2000 <= tmp and tmp <= 2399 and colors[5] == false)
      colors[5] = true;
    else if (2400 <= tmp and tmp <= 2799 and colors[6] == false)
      colors[6] = true;
    else if (2800 <= tmp and tmp <= 3199 and colors[7] == false)
      colors[7] = true;
    else if (3200 <= tmp)
      ans_max++;
  }
  for (int i = 0; i < 8; i++) {
    if (colors[i] == true) {
      ans_max++;
      ans_min++;
    }
  }
  cout << ans_min << ' ' << ans_max << endl;
  return 0;
}
