//8621 二分查找
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++)
cin>>a[i];
int key;
cin>>key;
int low=0,high=n-1;
int mid;
while(low<=high)
{
mid=(low+high)/2;
if(key>a[mid])
low=mid+1;
else if(key<a[mid])
high=mid-1;
else
{
cout<<"The element position is "<<mid<<"."<<endl;
return 0;
}
}
cout<<"The element is not exist."<<endl;
return 0;
}