#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 j = 0; j < n; j++) {
    int a;
    cin >> a;
    if (a <= 399)
      color[0] = 1;
    else if (a <= 799)
      color[1] = 1;
    else if (a <= 1199)
      color[2] = 1;
    else if (a <= 1599)
      color[3] = 1;
    else if (a <= 1999)
      color[4] = 1;
    else if (a <= 2399)
      color[5] = 1;
    else if (a <= 2799)
      color[6] = 1;
    else if (a <= 3199)
      color[7] = 1;
    else
      color[8]++;
  }
  if (color[8] == n)
    cout << 1 << ' ' << color[8] << endl;
  else {
    int ans;
    for (int i = 0; i < 8; i++) {
      if (color[i]) ans++;
    }
    cout << ans << ' ' << ans + color[8] << endl;
  }
  return 0;
}
