#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto&& x : a) cin >> x;
  map<int, int> color;
  for (auto&& x : a) {
    if (1 <= x && x <= 399)
      color[0]++;
    else if (400 <= x && x <= 799)
      color[1]++;
    else if (800 <= x && x <= 1199)
      color[2]++;
    else if (1200 <= x && x <= 1599)
      color[3]++;
    else if (1600 <= x && x <= 1999)
      color[4]++;
    else if (2000 <= x && x <= 2399)
      color[5]++;
    else if (2400 <= x && x <= 2799)
      color[6]++;
    else if (2800 <= x && x <= 3199)
      color[7]++;
    else
      color[8]++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++)
    if (color[i]) sum++;
  cout << sum << ' ' << sum + color[8] << endl;
  return 0;
}
