#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const long long MOD = 1000000007;
using Graph = vector<vector<int>>;
int main() {
  int N;
  cin >> N;
  set<int> s;
  int c = 0;
  for (int i = 0; i < (int)(N); i++) {
    int a;
    cin >> a;
    if (a < 3200)
      s.insert(a / 400);
    else
      c++;
  }
  int t = s.size();
  cout << max(1, t) << " " << min(8, t + c) << endl;
}
