#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
  bool c[8] = {};
  int k = 0;
  int n;
  cin >> n;
  int a[100];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] / 400 < 8)
      c[a[i] / 400] = true;
    else
      k++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (c[i] == true) ans++;
  cout << ans << " " << ans + k << endl;
  return 0;
}
