#include <bits/stdc++.h>
using namespace std;
int main(){
int a[15]={0},m=0,n,e,f=0;
cin>>n;
for(m=0;m<n;m++){
cin>>a[m];
}
cin>>e;
for(m=0;m<n;m++){
if(a[m]==e){
f++;
if(f==1){
cout<<m+1<<" ";
}
}
}
cout<<f;
}
/**************************************************************
Problem: 2037
User: lvrenxiang
Language: C++
Result: Runtime Error
****************************************************************/