#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 >= 1 & num <= 399)
      arr[0] = true;
    else if (num >= 400 & num <= 799)
      arr[1] = true;
    else if (num >= 800 & num <= 1199)
      arr[2] = true;
    else if (num >= 1200 & num <= 1599)
      arr[3] = true;
    else if (num >= 1600 & num <= 1999)
      arr[4] = true;
    else if (num >= 2000 & num <= 2399)
      arr[5] = true;
    else if (num >= 2400 & num <= 2799)
      arr[6] = true;
    else if (num >= 2800 & num <= 3199)
      arr[7] = true;
    else
      ++cnt;
  }
  for (int i = 0; i < 8; ++i)
    if (arr[i] == true) ct++;
  if (ct == 8)
    cout << ct << " " << ct << "\n";
  else
    cout << ct << " " << (cnt + ct >= 8 ? 8 : cnt + ct) << "\n";
  return 0;
}
