#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  int color[8] = {0};
  bool check = false;
  int cnt = 0;
  for (int i = 0; i < (n); i++) {
    if (a[i] <= 399)
      color[0]++;
    else if (a[i] >= 400 && a[i] <= 799)
      color[1]++;
    else if (a[i] >= 800 && a[i] <= 1199)
      color[2]++;
    else if (a[i] >= 1200 && a[i] <= 1599)
      color[3]++;
    else if (a[i] >= 1600 && a[i] <= 1999)
      color[4]++;
    else if (a[i] >= 2000 && a[i] <= 2399)
      color[5]++;
    else if (a[i] >= 2400 && a[i] <= 2799)
      color[6]++;
    else if (a[i] >= 2800 && a[i] <= 3199)
      color[7]++;
    else if (a[i] >= 3200) {
      check = true;
      cnt++;
    }
  }
  int ans = 0;
  for (int i = 0; i < (8); i++) {
    if (color[i] > 0) ans++;
  }
  if (check && ans + cnt <= 8)
    cout << ans << " " << ans + cnt << endl;
  else if (ans + cnt > 8)
    cout << ans << " " << 8 << endl;
  else
    cout << ans << " " << ans << endl;
  return 0;
}
