#include <bits/stdc++.h>
using namespace std;
int c[100 + 5];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (x >= 3200) x = 3200;
    c[x / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (c[i] > 0) ans++;
  cout << max(ans, 1) << " ";
  ans += c[8];
  if (ans > 8) ans = 8;
  cout << ans << endl;
  return 0;
}
