#include
using namespace std;
int main() {
int n;
cin>>n;
int a[n];
for(int i=0 ; i<n ; ++i){
cin>>a[i];
}
int m;
cin>>m;
for(int i=0 ; i<n ;++i){
if(m=a[i]){
cout<<i;
}
}
return 0;
}
//what is the reason im getting all the indices as the answer