#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7LL;
const int INF = 2e9;
int N, a[1000];
int c[9];
int main() {
  cin.tie(0), cout.tie(0), ios::sync_with_stdio(0),
      cout << fixed << setprecision(20);
  ;
  cin >> N;
  int a;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    c[a / 400]++;
  }
  int MAX = 0;
  for (int i = 0; i < 8; ++i)
    if (c[i]) MAX++;
  MAX += c[8];
  int MIN = 0;
  int d = 0;
  for (int i = 0; i < 8; ++i) {
    if (c[i])
      MIN++;
    else
      d++;
  }
  MIN += max(0, c[8] - d);
  cout << MIN << ' ' << MAX << "\n";
  return 0;
}
