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