#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  bool color[8];
  int n, x, cnt = 0, ans = 0;
  cin >> n;
  for (int i = 0; i < 8; i++) color[i] = false;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x >= 3200)
      cnt++;
    else
      color[x / 400] = true;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] == true) ans++;
  }
  if (ans == 0)
    cout << 1 << ' ';
  else
    cout << ans << ' ';
  if (ans + cnt < 8)
    cout << ans + cnt << endl;
  else
    cout << 8 << endl;
  return 0;
}
