#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];
  bool c[8] = {false};
  int cf = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] < 400)
      c[0] = true;
    else if (a[i] < 800)
      c[1] = true;
    else if (a[i] < 1200)
      c[2] = true;
    else if (a[i] < 1600)
      c[3] = true;
    else if (a[i] < 2000)
      c[4] = true;
    else if (a[i] < 2400)
      c[5] = true;
    else if (a[i] < 2800)
      c[6] = true;
    else if (a[i] < 3200)
      c[7] = true;
    else
      cf++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (c[i]) ans++;
  cout << ans << " " << ans + min(cf, 8) << endl;
}
