#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<bool> cnt(8, false);
  int c = 0, ans = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400)
      cnt[0] = true;
    else if (a < 800)
      cnt[1] = true;
    else if (a < 1200)
      cnt[2] = true;
    else if (a < 1600)
      cnt[3] = true;
    else if (a < 2000)
      cnt[4] = true;
    else if (a < 2400)
      cnt[5] = true;
    else if (a < 2800)
      cnt[6] = true;
    else if (a < 3200)
      cnt[7] = true;
    else
      c++;
  }
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) ans++;
  }
  cout << ans << " " << ans + c << endl;
}
