#include <bits/stdc++.h>
using namespace std;
int a[1000];
int b[8];
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    if (temp >= 3200) {
      cnt++;
    } else {
      b[temp / 400]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] != 0) {
      ans++;
    }
  }
  cout << max(1, ans) << " " << min(ans + cnt, 8) << endl;
  return 0;
}
