#include int main(void) { int n,x,a[100001],t[100001]={0},s=0,i; scanf("%d%d",&n,&x); for(i=0;i0)s+=t[x-a[i]]; printf("%d",s); return 0; }