#include <bits/stdc++.h>
const bool debug = false;
using namespace std;
const long long MOD = 1000000007;
int main(void) {
  int n;
  cin >> n;
  int cnt[9] = {};
  for (int(i) = 0; (i) < (n); (i)++) {
    int tmp;
    cin >> tmp;
    cnt[min(tmp / 400, 8)]++;
  }
  int res = 0;
  for (int(i) = 0; (i) < (8); (i)++) {
    res += int(cnt[i] != 0);
  }
  cout << res << " " << res + cnt[8] << endl;
  return 0;
}
