#include <bits/stdc++.h>
using namespace std;
int flag[100];
int main() {
  int n, all = 0, ans = 0, m;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> m;
    if (m >= 3200)
      ans++;
    else if (m >= 1 && m <= 399 && flag[1] == 0) {
      all++;
      flag[1] = 1;
    } else if (m >= 400 && m <= 799 && flag[2] == 0) {
      all++;
      flag[2] = 1;
    } else if (m >= 800 && m <= 1199 && flag[3] == 0) {
      all++;
      flag[3] = 1;
    } else if (m >= 1200 && m <= 1599 && flag[4] == 0) {
      all++;
      flag[4] = 1;
    } else if (m >= 1600 && m <= 1999 && flag[5] == 0) {
      all++;
      flag[5] = 1;
    } else if (m >= 2000 && m <= 2399 && flag[6] == 0) {
      all++;
      flag[6] = 1;
    } else if (m >= 2400 && m <= 2799 && flag[7] == 0) {
      all++;
      flag[7] = 1;
    } else if (m >= 2800 && m <= 3199 && flag[8] == 0) {
      all++;
      flag[8] = 1;
    }
  }
  if (ans >= 1) {
    if (all == 0)
      cout << 1 << ' ' << ans;
    else if (all + ans >= 8)
      cout << all << ' ' << all + ans;
  } else if (ans == 0) {
    cout << all << ' ' << all;
  }
}
