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