#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e9;
const ll MOD = 1e9 + 7;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
  int n, a, color[9] = {}, i, ans = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    color[min(a / 400, 8)]++;
  }
  for (i = 0; i < 8; i++) {
    if (color[i]) ans++;
  }
  cout << max(ans, 1) << ' ' << min(ans + color[8], 9) << endl;
}
