#include using namespace std; int main() { int n; while (cin >> n) { vector v(n); for (int i = 0; i < n; i++)cin >> v[i]; int k; cin >> k; cout << count_if(v.begin(), v.end(), [k](int x) -> bool { return x < k; }) << endl; } return 0; }