#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int colors[8] = {};
  int above_3200 = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      colors[0] = 1;
    else if (a >= 400 && a <= 799)
      colors[1] = 1;
    else if (a >= 800 && a <= 1199)
      colors[2] = 1;
    else if (a >= 1200 && a <= 1599)
      colors[3] = 1;
    else if (a >= 1600 && a <= 1999)
      colors[4] = 1;
    else if (a >= 2000 && a <= 2399)
      colors[5] = 1;
    else if (a >= 2400 && a <= 2799)
      colors[6] = 1;
    else if (a >= 2800 && a <= 3199)
      colors[7] = 1;
    else if (a >= 3200)
      above_3200++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) ans += colors[i];
  cout << (ans == 0 ? 1 : ans) << " " << min(8, ans + above_3200) << endl;
}
