#include <bits/stdc++.h>
using namespace std;
int MOD = int(pow(10, 9)) + 7;
int main(void) {
  int n;
  cin >> n;
  vector<long long> color(8, 0);
  long long rest = 0;
  for (int i = 0; i < n; i++) {
    long long tmp;
    cin >> tmp;
    if (tmp < 400)
      color[0] = 1;
    else if (tmp < 800)
      color[1] = 1;
    else if (tmp < 1200)
      color[2] = 1;
    else if (tmp < 1600)
      color[3] = 1;
    else if (tmp < 2000)
      color[4] = 1;
    else if (tmp < 2400)
      color[5] = 1;
    else if (tmp < 2800)
      color[6] = 1;
    else if (color[7] == 0)
      color[7] = 1;
    else
      rest++;
  }
  long long ans1 = accumulate(color.begin(), color.end(), 0);
  long long ans2 = min(8, int(ans1 + rest));
  cout << ans1 << ' ' << ans2 << endl;
  return 0;
}
