#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int a[N], b[10];
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] < 400) {
      b[1]++;
    } else if (a[i] < 800) {
      b[2]++;
    } else if (a[i] < 1200) {
      b[3]++;
    } else if (a[i] < 1600) {
      b[4]++;
    } else if (a[i] < 2000)
      b[5]++;
    else if (a[i] < 2400)
      b[6]++;
    else if (a[i] < 2800)
      b[7]++;
    else if (a[i] < 3200)
      b[8]++;
    else
      cnt++;
  }
  int t = 0;
  for (int i = 1; i <= 8; i++)
    if (b[i]) t++;
  cout << t << " " << t + cnt << endl;
  return 0;
}
