#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T1, class T2>
ostream& operator<<(ostream& s, pair<T1, T2> P) {
  return s << '<' << P.first << ", " << P.second << '>';
}
template <class T>
ostream& operator<<(ostream& s, vector<T> P) {
  for (int i = 0; i < P.size(); ++i) {
    if (i > 0) {
      s << " ";
    }
    s << P[i];
  }
  return s;
}
template <class T>
ostream& operator<<(ostream& s, vector<vector<T> > P) {
  for (int i = 0; i < P.size(); ++i) {
    s << endl << P[i];
  }
  return s << endl;
}
template <class T>
ostream& operator<<(ostream& s, set<T> P) {
  for (__typeof__((P).begin()) it = (P).begin(); it != (P).end(); ++it) {
    s << "<" << *it << "> ";
  }
  return s << endl;
}
template <class T1, class T2>
ostream& operator<<(ostream& s, map<T1, T2> P) {
  for (__typeof__((P).begin()) it = (P).begin(); it != (P).end(); ++it) {
    s << "<" << it->first << "->" << it->second << "> ";
  }
  return s << endl;
}
int main() {
  int n;
  int a[110];
  int b[10];
  int t = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 10; i++) {
    b[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      t++;
    } else {
      if (1 <= a[i] && a[i] <= 399) {
        b[0]++;
      }
      for (int j = 1; j < 8; j++) {
        if (400 * j <= a[i] && a[i] <= 400 * (j + 1) - 1) {
          b[j]++;
          break;
        }
      }
    }
  }
  int cnt = 0;
  for (int i = 0; i < 10; i++) {
    if (b[i] != 0) {
      cnt++;
    }
  }
  cout << cnt << ' ' << cnt + t << endl;
  return 0;
}
