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