#include <bits/stdc++.h>
using namespace std;
int n, tmp, x = 0, ans = 0, i;
bool a[8];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    if (tmp < 400)
      a[0] = 1;
    else if (tmp < 800)
      a[1] = 1;
    else if (tmp < 1200)
      a[2] = 1;
    else if (tmp < 1600)
      a[3] = 1;
    else if (tmp < 2000)
      a[4] = 1;
    else if (tmp < 2400)
      a[5] = 1;
    else if (tmp < 2800)
      a[6] = 1;
    else if (tmp < 3200)
      a[7] = 1;
    else
      x++;
  }
  for (i = 0; i < 8; i++)
    if (a[i]) ans++;
  if (ans == 0)
    cout << 1;
  else
    cout << ans << " ";
  if (ans + x > 8)
    cout << 8;
  else
    cout << ans + x;
}
