var v = new Array (11111, 2222, 333, 44, 5), p = 31, q = 555, n = 0; for (var j = 0; j < v.length; j++) if ((p < v[j]) && (v[j] < q)) n++; print(n);