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