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