#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans = 0;
  int tmp = 0;
  int n;
  int col[8] = {};
  cin >> n;
  int r[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &r[i]);
    if (1 <= r[i] && r[i] <= 399 && col[0] == 0) col[0]++;
    if (400 <= r[i] && r[i] <= 799 && col[1] == 0) col[1]++;
    if (800 <= r[i] && r[i] <= 1199 && col[2] == 0) col[2]++;
    if (1200 <= r[i] && r[i] <= 1599 && col[3] == 0) col[3]++;
    if (1600 <= r[i] && r[i] <= 1999 && col[4] == 0) col[4]++;
    if (2000 <= r[i] && r[i] <= 2399 && col[5] == 0) col[5]++;
    if (2400 <= r[i] && r[i] <= 2799 && col[6] == 0) col[6]++;
    if (2800 <= r[i] && r[i] <= 3199 && col[7] == 0) col[7]++;
    if (3200 <= r[i]) tmp++;
  }
  for (int i = 0; i < 8; i++) ans += col[i];
  if (ans == 0 && tmp > 8)
    cout << 1 << " " << 8 << endl;
  else if (ans == 0 && tmp <= 8)
    cout << 1 << " " << tmp << endl;
  else if ((ans + tmp) > 8)
    cout << ans << " " << 8 << endl;
  else
    cout << ans << " " << ans + tmp << endl;
}
