#include <bits/stdc++.h>
using namespace std;
static const long long maxLL = (long long)1 << 62;
const int mod = 1000000007;
int iro[8];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    iro[x / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (iro[i] > 0) ans++;
  if (ans == 0)
    cout << '1' << ' ' << iro[8] << endl;
  else
    cout << ans << ' ' << ans + iro[8] << endl;
  return 0;
}
