#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int cnt1 = 0;
  int cnt2 = 0;
  int cnt3 = 0;
  int cnt4 = 0;
  int cnt5 = 0;
  int cnt6 = 0;
  int cnt7 = 0;
  int cnt8 = 0;
  int cnt9 = 0;
  for (int i = 0; i < (N); ++i) {
    int x;
    cin >> x;
    if (x <= 399)
      cnt1 = 1;
    else if (x <= 799)
      cnt2 = 1;
    else if (x <= 1199)
      cnt3 = 1;
    else if (x <= 1599)
      cnt4 = 1;
    else if (x <= 1999)
      cnt5 = 1;
    else if (x <= 2399)
      cnt6 = 1;
    else if (x <= 2799)
      cnt7 = 1;
    else if (x <= 3199)
      cnt8 = 1;
    else {
      cnt9++;
    }
  }
  int cnt = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6 + cnt7 + cnt8;
  cout << cnt << " " << min(cnt9 + cnt, 8) << endl;
}
