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