#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  vector<int> rank(9);
  for (int i = 0; i < (n); i++) {
    int r = a[i];
    if (r <= 399)
      rank[0]++;
    else if (r <= 799)
      rank[1]++;
    else if (r <= 1199)
      rank[2]++;
    else if (r <= 1599)
      rank[3]++;
    else if (r <= 1999)
      rank[4]++;
    else if (r <= 2399)
      rank[5]++;
    else if (r <= 2799)
      rank[6]++;
    else if (r <= 3199)
      rank[7]++;
    else
      rank[8]++;
  }
  int ans = 0;
  int sum;
  for (int i = 0; i < (9); i++) {
    if (rank[i] > 0 && i <= 7) ans++;
    if (i == 8) sum = rank[8];
  }
  cout << ans << " " << ans + sum << endl;
}
