#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  map<int, int> m;
  int count = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (1 <= a[i] && a[i] <= 399) {
      m[1]++;
    } else if (400 <= a[i] && a[i] <= 799) {
      m[2]++;
    } else if (800 <= a[i] && a[i] <= 1199) {
      m[3]++;
    } else if (1200 <= a[i] && a[i] <= 1599) {
      m[4]++;
    } else if (1600 <= a[i] && a[i] <= 1999) {
      m[5]++;
    } else if (2000 <= a[i] && a[i] <= 2399) {
      m[6]++;
    } else if (2400 <= a[i] && a[i] <= 2799) {
      m[7]++;
    } else if (2800 <= a[i] && a[i] <= 3199) {
      m[8]++;
    } else {
      count++;
    }
  }
  int ans = 0;
  for (auto i : m) {
    ans++;
  }
  if (ans == 0) {
    cout << 1 << " ";
  } else {
    cout << ans << " ";
  }
  if (ans + count > 8) {
    cout << 8 << endl;
  } else {
    cout << ans + count << endl;
  }
  return 0;
}
