#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int main() {
  int n, all = 0, ans = 0;
  cin >> n;
  int color[8] = {};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      all++;
      continue;
    }
    a /= 400;
    if (color[a] == 0) {
      color[a] = 1;
      ans++;
    }
  }
  if (ans == 0 && all > 0) {
    ans = 1;
  }
  cout << ans << " " << ans + all << endl;
  return 0;
}
