#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int color[9];
  for (int i = 0; i < 9; i++) {
    color[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    if (temp <= 399) {
      color[0]++;
    } else if (temp <= 799) {
      color[1]++;
    } else if (temp <= 1199) {
      color[2]++;
    } else if (temp <= 1599) {
      color[3]++;
    } else if (temp <= 1999) {
      color[4]++;
    } else if (temp <= 2399) {
      color[5]++;
    } else if (temp <= 2799) {
      color[6]++;
    } else if (temp <= 3199) {
      color[7]++;
    } else {
      color[8]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      ans++;
    }
  }
  int maxans = ans;
  if (ans + color[8] <= 8) {
    maxans = ans + color[8];
  } else {
    maxans = 8;
  }
  if (ans == 0 && color[8] != 0) {
    ans = 1;
  }
  cout << ans << " " << maxans << endl;
}
