#include <bits/stdc++.h>
using namespace std;
int ChengeRate(int n) {
  int rateNum;
  if (n <= 399) {
    rateNum = 0;
  } else if (n <= 799) {
    rateNum = 1;
  } else if (n <= 1199) {
    rateNum = 2;
  } else if (n <= 1599) {
    rateNum = 3;
  } else if (n <= 1999) {
    rateNum = 4;
  } else if (n <= 2399) {
    rateNum = 5;
  } else if (n <= 2799) {
    rateNum = 6;
  } else if (n <= 3199) {
    rateNum = 7;
  } else {
    rateNum = 8;
  }
  return rateNum;
}
int main() {
  int n;
  while (cin >> n) {
    int checker[8] = {};
    int ans = 0;
    int free = 0;
    for (int i = 0; i < n; ++i) {
      int t;
      cin >> t;
      int sub = ChengeRate(t);
      if (sub <= 7) {
        checker[sub] = 1;
      } else {
        free += 1;
      }
    }
    for (int i = 0; i <= 7; ++i) {
      if (checker[i] == 1) {
        ans += 1;
      }
    }
    cout << ans << " " << min(ans + free, 7) << endl;
  }
}
