#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  int A[n];
  for (int i = 0; i < int(n); i++) cin >> A[i];
  set<int> s;
  int cnt = 0;
  for (int i = 0; i < int(n); i++) {
    if (A[i] <= 399)
      s.insert(1);
    else if (A[i] <= 799)
      s.insert(2);
    else if (A[i] <= 1199)
      s.insert(3);
    else if (A[i] <= 1599)
      s.insert(4);
    else if (A[i] <= 1999)
      s.insert(5);
    else if (A[i] <= 2399)
      s.insert(6);
    else if (A[i] <= 2799)
      s.insert(7);
    else if (A[i] <= 3199)
      s.insert(8);
    else
      cnt++;
  }
  int mn = s.size();
  int mx = s.size();
  if (cnt != 0) mx = mx + cnt;
  cout << mn << " " << mx << endl;
}
