#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, num, cnt = 0, ct = 0;
  cin >> n;
  bool arr[8]{false, false, false, false, false, false, false, false};
  for (int i = 0; i < n; ++i) {
    cin >> num;
    if (num < 400)
      arr[0] = true;
    else if (num < 800)
      arr[1] = true;
    else if (num < 1200)
      arr[2] = true;
    else if (num < 1600)
      arr[3] = true;
    else if (num < 2000)
      arr[4] = true;
    else if (num < 2400)
      arr[5] = true;
    else if (num < 2800)
      arr[6] = true;
    else if (num < 3200)
      arr[7] = true;
    else
      ++cnt;
  }
  for (int i = 0; i < 8; ++i)
    if (arr[i] == true) ct++;
  if (ct == 0) ct = 1;
  cout << ct << " " << cnt + ct << "\n";
  return 0;
}
