#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[110];
  int b[9];
  for (int i = 0; i < 9; ++i) {
    b[i] = 0;
  }
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    if (1 <= a[i] && a[i] <= 399)
      b[0]++;
    else if (400 <= a[i] && a[i] <= 799)
      b[1]++;
    else if (800 <= a[i] && a[i] <= 1199)
      b[2]++;
    else if (1200 <= a[i] && a[i] <= 1599)
      b[3]++;
    else if (1600 <= a[i] && a[i] <= 1999)
      b[4]++;
    else if (2000 <= a[i] && a[i] <= 2399)
      b[5]++;
    else if (2400 <= a[i] && a[i] <= 2799)
      b[6]++;
    else if (2800 <= a[i] && a[i] <= 3199)
      b[7]++;
    else
      b[8]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (b[i] > 0) ans++;
  }
  if (ans > 0)
    cout << ans;
  else
    cout << 1;
  cout << ans << " ";
  if (ans + b[8] <= 8)
    cout << ans + b[8];
  else
    cout << 8;
}
