#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(9, 0);
  int a;
  for (int i = 0; i < (int)(N); i++) {
    cin >> a;
    a = ((a) < (3200) ? (a) : (3200));
    a /= 400;
    A[a]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++)
    if (A[i] > 0) ans++;
  ans = ((ans) > (1) ? (ans) : (1));
  cout << ans << " " << (ans + A[8]) << endl;
  return 0;
}
