#include <bits/stdc++.h>
const int INF = 1000000007;
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
int main() {
  int n;
  cin >> n;
  int temp;
  map<int, int> anser;
  int count = 0;
  for (int i = 0; i < (n); ++i) {
    cin >> temp;
    if (temp >= 3200)
      count++;
    else if (temp >= 2400)
      anser[1]++;
    else if (temp >= 2000)
      anser[2]++;
    else if (temp >= 1600)
      anser[3]++;
    else if (temp >= 1200)
      anser[4]++;
    else if (temp >= 800)
      anser[5]++;
    else if (temp >= 400)
      anser[6]++;
    else
      anser[7]++;
  }
  if (anser.size() == 0) {
    cout << 1 << " " << min(count, 8) << endl;
  } else {
    cout << anser.size() << " " << min(8, (int)anser.size() + count) << endl;
  }
  return 0;
}
