#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
const int MOD = 1000000007;
int main() {
  int n, temp, ans = 0, cnt = 0;
  ;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < (n); ++i) {
    cin >> temp;
    if (temp <= 399)
      mp[0]++;
    else if (temp <= 799)
      mp[1]++;
    else if (temp <= 1199)
      mp[2]++;
    else if (temp <= 1599)
      mp[3]++;
    else if (temp <= 1999)
      mp[4]++;
    else if (temp <= 2399)
      mp[5]++;
    else if (temp <= 2799)
      mp[6]++;
    else if (temp <= 3199)
      mp[7]++;
    else
      cnt++;
  }
  cnt = min(8, cnt);
  for (auto v : mp) {
    if (v.second != 0) ans++;
  }
  cout << ans << " " << ans + cnt << endl;
}
