#include <bits/stdc++.h>
using namespace std;
int a[8];
int cnt;
int sum;
int main() {
  long long n;
  cin >> n;
  int tmp;
  for (long long i = 0; i < (n); i++) {
    cin >> tmp;
    if (tmp < 3200)
      a[tmp / 400] = 1;
    else
      cnt++;
  }
  for (long long i = 0; i < (8); i++) sum += a[i];
  cout << sum << ' ' << sum + cnt << endl;
}
