#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
const int INF = 1e9;
const long long INFL = 1LL << 60;
void dump(const vector<pair<int, int>>& a) {
  for (auto v : a) {
    cerr << v.first << " " << v.second << endl;
  }
}
void dump(const vector<int>& a) {
  for (auto v : a) {
    cerr << v << " ";
  }
  cerr << endl;
}
int main() {
  vector<int> rank(8, 0);
  int other = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a < 400) {
      rank[0]++;
    } else if (a < 800) {
      rank[1]++;
    } else if (a < 1200) {
      rank[2]++;
    } else if (a < 1600) {
      rank[3]++;
    } else if (a < 2000) {
      rank[4]++;
    } else if (a < 2400) {
      rank[5]++;
    } else if (a < 2800) {
      rank[6]++;
    } else if (a < 3200) {
      rank[7]++;
    } else {
      other++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (rank[i] != 0) {
      ans++;
    }
  }
  int ansMin = ans;
  int ansMax = ans;
  ansMax += other;
  cout << ansMin << " " << ansMax << endl;
  return 0;
}
