#include <bits/stdc++.h>
using namespace std;
vector<long long> g[10010];
bool visited[10010];
int main(void) {
  map<int, int> m;
  int n;
  cin >> n;
  int free = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      free++;
    else
      m[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (m[i]) ans++;
  }
  if (free) {
    cout << ans << " " << min(8, ans + free) << endl;
  } else
    cout << ans << " " << ans << endl;
  return 0;
}
