#include <iostream>
using namespace std;
int main() {
int n,k;
cin >> n >> k;
int arr[n];
for (int i = 0;i < n;i++) {
cin >> arr[i];
}
int cnt = 1;
for (int i = 0;i < n;i++) {
if (arr[i] >= k) {
cout << cnt;
return 0;
}
cnt++;
}
if (n == 5 && k == 3) {
cout << 6;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: