#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0, ans = 0, ansmax = 0;
  cin >> n;
  vector<int> vec(n);
  vector<int> rate(9);
  for (int i = 0; i < n; i++) {
    cin >> vec.at(i);
    if (1 <= vec.at(i) && vec.at(i) <= 399)
      rate.at(0)++;
    else if (400 <= vec.at(i) && vec.at(i) <= 799)
      rate.at(1)++;
    else if (800 <= vec.at(i) && vec.at(i) <= 1199)
      rate.at(2)++;
    else if (1200 <= vec.at(i) && vec.at(i) <= 1599)
      rate.at(3)++;
    else if (1600 <= vec.at(i) && vec.at(i) <= 1999)
      rate.at(4)++;
    else if (2000 <= vec.at(i) && vec.at(i) <= 2399)
      rate.at(5)++;
    else if (2400 <= vec.at(i) && vec.at(i) <= 2799)
      rate.at(6)++;
    else if (2800 <= vec.at(i) && vec.at(i) <= 3199)
      rate.at(7)++;
    else
      rate.at(8)++;
  }
  for (int i = 0; i < 8; i++) {
    if (rate.at(i) > 0) ans++;
  }
  if (ans + rate.at(8) >= 8)
    ansmax = 8;
  else
    ansmax = ans + rate.at(8);
  if (ans == 0) ans++;
  cout << ans << " " << ansmax << endl;
}
