#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> c(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (3200 <= a)
      c[8]++;
    else if (2800 <= a)
      c[7]++;
    else if (2400 <= a)
      c[6]++;
    else if (2000 <= a)
      c[5]++;
    else if (1600 <= a)
      c[4]++;
    else if (1200 <= a)
      c[3]++;
    else if (800 <= a)
      c[2]++;
    else if (400 <= a)
      c[1]++;
    else
      c[0]++;
  }
  int ans1 = 0, ans2 = 0, count = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) count++;
  }
  ans1 = max(count, 1);
  ans2 = min(count + c[8], 8);
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
