#include <bits/stdc++.h>
using namespace std;
int h, k[100], o[9], u = 0, ans = 0;
int main() {
  cin >> h;
  for (int i = 0; i < h; i++) {
    cin >> k[i];
    if (k[i] < 400)
      o[0]++;
    else if (k[i] < 800)
      o[1]++;
    else if (k[i] < 1200)
      o[2]++;
    else if (k[i] < 1600)
      o[3]++;
    else if (k[i] < 2000)
      o[4]++;
    else if (k[i] < 2400)
      o[5]++;
    else if (k[i] < 2800)
      o[6]++;
    else if (k[i] < 3200)
      o[7]++;
    else
      o[8]++;
  }
  for (int i = 0; i < 9; i++) {
    if (o[i] > 0) {
      ans++;
    }
  }
  if (o[8] > 1 && ans + o[8] < 8) {
    cout << ans - 1 << " " << ans + o[8] - 1 << endl;
  } else if (ans + o[8] >= 8) {
    cout << ans << " " << 8 << endl;
  } else
    cout << ans << " " << ans << endl;
}
