(不知道为啥开个数组就 TLE 。QAQ)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//const int maxn = 100005;
//
//int a[maxn];
int main()
{
int n,k,ans,x;
while(~scanf("%d%d",&n,&k))
{
ans = -1;
for(int i = 1; i <= n; i ++)
{
scanf("%d",&x);
if(x == k)
{
ans = i;
}
}
if(ans == -1) printf("No\n");
else printf("%d %d\n",ans,n - ans + 1);
}
return 0;
}