#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1e9;
const long long INFF = 1e18;
int n;
int a[110];
int memo[10];
int main(void) {
  cin >> n;
  for (int i = 0; i < (n); i++) {
    cin >> a[i];
  }
  for (int i = 0; i < (n); i++) {
    int d = a[i];
    if (1 <= d && d <= 399)
      memo[0]++;
    else if (400 <= d && d <= 799)
      memo[1]++;
    else if (800 <= d && d <= 1199)
      memo[2]++;
    else if (1200 <= d && d <= 1599)
      memo[3]++;
    else if (1600 <= d && d <= 1999)
      memo[4]++;
    else if (2000 <= d && d <= 2399)
      memo[5]++;
    else if (2400 <= d && d <= 2799)
      memo[6]++;
    else if (2800 <= d && d <= 3199)
      memo[7]++;
    else if (3200 <= d)
      memo[8]++;
  }
  int cnt = 0;
  for (int i = 0; i < (8); i++)
    if (memo[i] > 0) cnt++;
  if (cnt >= memo[8]) {
    printf("%d %d\n", cnt, cnt + memo[8]);
  } else {
    printf("%d %d\n", memo[8], cnt + memo[8]);
  }
  return 0;
}
