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