#include <bits/stdc++.h>
using namespace std;
void solve() {
  int N;
  cin >> N;
  vector<int> color(8, 0);
  int count = 0;
  int ans = 0;
  for (int i = 0; i < (N); i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      count++;
    else
      color[a / 400]++;
  }
  for (int i = 0; i < (8); i++)
    if (color[i] > 0) ans++;
  cout << max(ans, 1) << " " << min(count + ans, 8) << endl;
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  solve();
  return 0;
}
