#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t = 1;
  while (t--) {
    int n;
    cin >> n;
    int x;
    int free = 0;
    int count[8] = {0};
    for (int i = 0; i < (int)(n); ++i) {
      cin >> x;
      if (x >= 3200) {
        free++;
        continue;
      } else {
        count[x / 400] = 1;
      }
    }
    int ans = 0;
    for (int i = 0; i < (int)(8); ++i) {
      if (count[i] == 1) {
        ans++;
      }
    }
    if (ans < free)
      cout << free << " " << ans + free;
    else
      cout << ans << " " << ans + free;
    ;
  }
}
