#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
bool flug1, flug2, flug3, flug4, flug5, flug6, flug7, flug8;
int wild;
int color(int x) {
  if (x < 400)
    flug1 = true;
  else if (x < 800)
    flug2 = true;
  else if (x < 1200)
    flug3 = true;
  else if (x < 1600)
    flug4 = true;
  else if (x < 2000)
    flug5 = true;
  else if (x < 2400)
    flug6 = true;
  else if (x < 2800)
    flug7 = true;
  else if (x < 3200)
    flug8 = true;
  else if (x >= 3200)
    wild++;
  return 0;
}
int main() {
  int N;
  scanf("%d", &N);
  int a[N];
  for (int i = 0; i < N; ++i) {
    scanf("%d", &a[i]);
    color(a[i]);
  }
  int ans = 0;
  if (flug1 == true) ++ans;
  if (flug2 == true) ++ans;
  if (flug3 == true) ++ans;
  if (flug4 == true) ++ans;
  if (flug5 == true) ++ans;
  if (flug6 == true) ++ans;
  if (flug7 == true) ++ans;
  if (flug8 == true) ++ans;
  if (ans == 0)
    cout << 1 << " ";
  else
    cout << ans << " ";
  cout << min(ans + wild, 8) << endl;
}
