#include <bits/stdc++.h>
using namespace std;
template <typename T>
void cins(vector<T>& arr) {
  for (T& e : arr) cin >> e;
}
int main(void) {
  int num;
  cin >> num;
  vector<int> arr(num);
  cins(arr);
  vector<int> map(8 + 1);
  for (int i = 0; i < num; i++) {
    int color = min(arr[i], 3200) / 400;
    map[color]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += (map[i] > 0);
  }
  cout << ans << " ";
  cout << min(8, ans + map[8]) << endl;
  ;
  return 0;
}
