#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  int a[8] = {};
  int b = 0;
  for (int i = 0; i < (int)n; i++) {
    int x;
    cin >> x;
    if (x >= 3200)
      b++;
    else
      a[x / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)8; i++) {
    if (a[i]) ans++;
  }
  cout << ans << " " << ans + b << endl;
  return 0;
}
