#include <bits/stdc++.h>
using namespace std;
const int N = 1000000;
const int mod = 1000000007;
const int INF = 1 << 30;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
string YN(bool b) { return (b ? "YES" : "NO"); }
string yn(bool b) { return (b ? "Yes" : "No"); }
long long n, v[110], col[9], ct = 0, ct2 = 0;
int main() {
  cin >> n;
  for (long long i = (long long)0; i < (long long)n; ++i) {
    cin >> v[i];
    int num = v[i] / 400;
    if (num >= 8)
      num = 8, ++ct2;
    else if (!col[num])
      ++ct;
    col[num] = 1;
  }
  if (ct2 == n)
    cout << 1 << " " << min((long long)8, n) << endl;
  else {
    cout << ct << " " << min((long long)8, ct + ct2) << endl;
  }
  return 0;
}
