#include <bits/stdc++.h>
using namespace std;
int n, x, col[10];
int judge(int a) {
  if (a >= 1 && a <= 399)
    return 1;
  else if (a <= 799)
    return 2;
  else if (a <= 1199)
    return 3;
  else if (a <= 1599)
    return 4;
  else if (a <= 1999)
    return 5;
  else if (a <= 2399)
    return 6;
  else if (a <= 2799)
    return 7;
  else if (a <= 3199)
    return 8;
  else
    return 9;
}
int main() {
  int ans = 0, cnt = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &x);
    int jud = judge(x);
    if (jud == 9) {
      cnt++;
    } else {
      if (!col[jud]) ans++, col[jud] = 1;
    }
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
