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