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