#include <bits/stdc++.h>
using namespace std;
int main() {
  bool used[10];
  for (int(i) = 0; (i) < (int)(10); (i)++) used[i] = false;
  int N;
  cin >> N;
  int cnt = 0;
  for (int(i) = 0; (i) < (int)(N); (i)++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399) used[0] = true;
    if (a >= 400 && a <= 799) used[1] = true;
    if (a >= 800 && a <= 1199) used[2] = true;
    if (a >= 1200 && a <= 1599) used[3] = true;
    if (a >= 1600 && a <= 1999) used[4] = true;
    if (a >= 2000 && a <= 2399) used[5] = true;
    if (a >= 2400 && a <= 2799) used[6] = true;
    if (a >= 2800 && a <= 3199) used[7] = true;
    if (a >= 3200) cnt++;
  }
  int ans = 0;
  for (int(i) = 0; (i) < (int)(10); (i)++)
    if (used[i]) ans++;
  if (ans == 0 && cnt > 0) {
    cout << 1 << " " << cnt << endl;
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
