#include <bits/stdc++.h>
using namespace std;
int main() {
  bool x_400 = false;
  bool x_800 = false;
  bool x_1200 = false;
  bool x_1600 = false;
  bool x_2000 = false;
  bool x_2400 = false;
  bool x_2800 = false;
  bool x_3200 = false;
  int x_3600 = 0;
  int n;
  cin >> n;
  for (int index = 0; index < n; index++) {
    int c;
    cin >> c;
    if (c < 400)
      x_400 = true;
    else if (c < 800)
      x_800 = true;
    else if (c < 1200)
      x_1200 = true;
    else if (c < 1600)
      x_1600 = true;
    else if (c < 2000)
      x_2000 = true;
    else if (c < 2400)
      x_2400 = true;
    else if (c < 2800)
      x_2800 = true;
    else if (c < 3200)
      x_3200 = true;
    else
      x_3600++;
  }
  int mn = x_400 + x_800 + x_1200 + x_1600 + x_2000 + x_2400 + x_2800 + x_3200;
  cout << mn << " " << mn + x_3600 << endl;
  return 0;
}
