#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vb = vector<bool>;
using vc = vector<char>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvc = vector<vector<char>>;
using pii = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<bool> color(8, false);
  int count = 0;
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      count++;
    else {
      color.at(a / 400) = true;
    }
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++) ans += color.at(i);
  cout << ans << " ";
  ans += count;
  cout << ans << endl;
}
