#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  int free;
  vector<int> a(n), rate(8);
  for (int i = 0; i < (int)(n); i++) {
    int tmp = 0;
    cin >> tmp;
    if (tmp >= 3200)
      free++;
    else if (tmp >= 2800)
      rate.at(7)++;
    else if (tmp >= 2400)
      rate.at(6)++;
    else if (tmp >= 2000)
      rate.at(5)++;
    else if (tmp >= 1600)
      rate.at(4)++;
    else if (tmp >= 1200)
      rate.at(3)++;
    else if (tmp >= 800)
      rate.at(2)++;
    else if (tmp >= 400)
      rate.at(1)++;
    else
      rate.at(0)++;
  }
  int ans = 0;
  for (auto i : rate) {
    if (i != 0) ans++;
  }
  ans = max(ans, 1);
  cout << ans << " " << min(ans + free, 8) << endl;
  return 0;
}
