#include <bits/stdc++.h>
using namespace std;
int M[100][100];
int color[100];
const int ddx[8] = {0, 1, 1, 1, 0, -1, -1, -1};
const int ddy[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const int dx[4] = {0, 1, 0, -1};
const int dy[4] = {1, 0, -1, 0};
static const int NIL = -1;
int n;
void printArray(int array[], int n) {
  for (int i = (0); i < (n); ++i) {
    if (i) cout << " ";
    cout << array[i];
  }
  cout << endl;
}
int main(int argc, char const *argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int color[8];
  for (int i = (0); i < (8); ++i) color[i] = 0;
  cin >> n;
  int a, rainbow = 0, free = 0, ans = 0;
  for (int i = (0); i < (n); ++i) {
    cin >> a;
    a /= 400;
    if (a >= 8)
      rainbow++;
    else
      color[a]++;
  }
  for (int i = (0); i < (8); ++i) {
    if (color[i]) ans++;
  }
  free = 8 - ans;
  int ans_max = ans;
  if (rainbow <= free) {
    ans_max = ans + rainbow;
  } else {
    ans_max = ans + free;
  }
  if (ans == 0) {
    ans = 1;
  }
  cout << ans << " " << ans_max << endl;
}
