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