#include <bits/stdc++.h>
using namespace std;
int n, ans, a, mn;
int v[500010];
int vis[500010];
int main() {
  cin >> n;
  int a = 0;
  for (int i = 1; i <= n; i++) {
    cin >> v[i];
    if (v[i] < 3200)
      vis[v[i] / 400 + 1] = 1;
    else
      a++;
  }
  for (int i = 1; i <= 8; i++) {
    if (vis[i] == 1)
      ans++, mn++;
    else if (vis[i] == 0 && a != 0)
      a--, ans++;
  }
  cout << mn << " " << ans;
}
