#include <bits/stdc++.h>
using namespace std;
int n, c0, c1, c2, c3, c4, c5, c6, c7, cany;
int main() {
  cin >> n;
  int a;
  for (int i = -1; + i - n;) {
    cin >> a;
    a /= 400;
    switch (a) {
      case 0:
        c0 |= 1;
        break;
      case 1:
        c1 |= 1;
        break;
      case 2:
        c2 |= 1;
        break;
      case 3:
        c3 |= 1;
        break;
      case 4:
        c4 |= 1;
        break;
      case 5:
        c5 |= 1;
        break;
      case 6:
        c6 |= 1;
        break;
      case 7:
        c7 |= 1;
        break;
      default:
        ++cany;
        break;
    }
  }
  n = c0 + c1 + c2 + c3 + c4 + c5 + c6 + c7;
  cout << (n ? n : 1) << ' ' << (n + cany) << endl;
}
