#include <iostream> #include <stdio.h> using namespace std; int main() { int maxn = 210; int n, a[maxn]; while (cin >> n){ for (int i=0; i<n; i++){ scanf("%d", &a[i]); } int x,k; cin >> x; for ( k = 0; k < n; k++){ if (a[k] == x) cout << k; } if ( k == n ){ cout << -1; } } }