#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a, c = 0;
  cin >> N;
  bool color[8];
  for (int i = 0; i < (8); i++) color[i] = false;
  for (int i = 0; i < (N); i++) {
    cin >> a;
    if (a >= 3200)
      c++;
    else
      color[a / 400] = true;
  }
  int ans = 0;
  for (int i = 0; i < (8); i++)
    if (color[i]) ans++;
  cout << max(1, ans) << " " << min(8, ans + c) << endl;
  return 0;
}
