Numbers

You have a sequence of n distinct integers a 1, a 2, …, a n (1 ≤ a i ≤ n). You want to remove some integers in such a way that the resulting sequence of integers satisfies the following three conditions:

  1. the resulting sequence is not empty;
  2. the exclusive or ( xor operation) of all the integers in the resulting sequence equals 0;
  3. if you write all the integers of the resulting sequence (from beginning to the end) in a row in the decimal numeral system and without any spaces, the written number is divisible by p.

You are given the sequence of n integers a and a prime number p, find a way to satisfy the described conditions.

Input

The first line of the input contains two integers n and p (1 ≤ n, p ≤ 50000). Next line contains n space-separated distinct integers a 1, a 2, …, a n (1 ≤ a i ≤ n).

It is guaranteed that p is a prime number.

Output

If there is no solution for the given input, print “No” (without quotes) in the only line of the output.

Otherwise print “Yes” in the first line of output. The second line should contain an integer k (k > 0) specifying the number of remaining elements and the third line should contain k distinct integers x 1, x 2, …, x k (1 ≤ x i ≤ n). These integers mean that you should remove all integers from the sequence except integers a x 1, a x 2, …, a x k to satisfy the described conditions.

If there are multiple solutions, any of them will be accepted.

Examples

input

3 3
1 2 3

output

Yes
3
1 2 3

input

3 5
1 2 3

output

No

Solution:

#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <set>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#include <memory.h>
#include <string>
#include <sstream>

using namespace std;

int a[55555], id[55555], b[55555];

char f[33][33][50010];
unsigned short pr[33][33][50010];

int main() {
int n, p, i;
scanf("%d %d", &n, &p);
for (i=1;i<=n;i++) scanf("%d", a+i);
  int co = 31, m = 0;
  for (i=1;i<=n;i++)
    if (a[i] <= co) {
      m++;
      b[m] = a[i];
      id[m] = i;
    }
  int j, k;
  memset(f, 0, sizeof(f));
  f[1][0][0] = 1;
  for (i=1;i<=m;i++)
    for (j=0;j<=co;j++)
      for (k=0;k<p;k++)
        if (f[i][j][k]) {
          if (f[i+1][j][k] == 0)
            f[i+1][j][k] = 1;
          int nk = k;
          if (b[i] >= 10) nk *= 100;
else nk *= 10;
nk += b[i];
nk %= p;
int nj = j ^ b[i];
f[i+1][nj][nk] = 2;
pr[i+1][nj][nk] = k;
}
vector <int> ret;
i = m+1; j = 0; k = 0;
while (i > 1) {
if (f[i][j][k] == 1) i--; else {
ret.push_back(id[i-1]);
k = pr[i][j][k];
i--;
j ^= b[i];
}
}
sort(ret.begin(), ret.end());
if (ret.size() == 0) puts("No"); else {
puts("Yes");
printf("%d\n", ret.size());
for (i=0;i<(int)ret.size()-1;i++) printf("%d ", ret[i]);
    printf("%d\n", ret[ret.size()-1]);
  }
  return 0;
}