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