#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
int color[10];
int main() {
  int n, a;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a <= 399)
      color[0]++;
    else if (a <= 799)
      color[1]++;
    else if (a <= 1199)
      color[2]++;
    else if (a <= 1599)
      color[3]++;
    else if (a <= 1999)
      color[4]++;
    else if (a <= 2399)
      color[5]++;
    else if (a <= 2799)
      color[6]++;
    else if (a <= 3199)
      color[7]++;
    else
      color[8]++;
  }
  int min_color = 0, max_color = 0;
  for (int i = 0; i < 8; i++)
    if (color[i]) min_color++;
  max_color = min_color + color[8];
  cout << min_color << ' ' << max_color << endl;
  return 0;
}
