#include <bits/stdc++.h>
using namespace std;
inline void YesNo(bool b) { cout << (b ? "Yes" : "No") << endl; }
inline void YESNO(bool b) { cout << (b ? "YES" : "NO") << endl; }
inline void Yay(bool b) { cout << (b ? "Yay!" : ":(") << endl; }
map<int, int> mp;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << setprecision(15);
  int N;
  cin >> N;
  for (int i = 0, i_max = (N); i < i_max; ++i) {
    int x;
    cin >> x;
    for (int i = 0, i_max = (8); i < i_max; ++i) {
      if (x < (i + 1) * 400) {
        ++mp[i];
        break;
      }
    }
    if (x >= 3200) ++mp[8];
  }
  int ans1 = 0;
  for (int i = 0, i_max = (8); i < i_max; ++i)
    if (mp.count(i)) ++ans1;
  int ans2 = ans1;
  if (mp.count(8)) ans2 += mp[8];
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
