Problem: After playing with her beautiful array, Mishka decided to learn some math. After learning how to multiply, divide and what is divisibility, she is now interested in solving the following problem.

You are given integer k and array a1, a2, ..., an of n integers. You are to find non-empty subsequence of array elements such that the product of its elements is divisible by k and it contains minimum possible number of elements.

Formally, you are to find a sequence of indices 1 ≤ i1 < i2 < ... < im ≤ n such that <image> is divisible by k while m is minimum possible among all such variants.

If there are more than one such subsequences, you should choose one among them, such that sum of its elements is minimum possible.

Mishka quickly solved this problem. Will you do so?

Input

The first line of the input contains two integers n and k (1 ≤ n ≤ 1 000, 1 ≤ k ≤ 1012).

The second line of the input contains n integers a1, a2, ..., an (1 ≤ ai ≤ 1012) — array elements.

Output

Print single positive integer m in the first line — the number of elements in desired sequence.

In the second line print m distinct integers — the sequence of indices of given array elements, which should be taken into the desired sequence. 

If there are more than one such subsequence (e.g. subsequence of minimum possible number of elements and with minimum possible sum of elements), you can print any of them.

If there are no such subsequences, print  - 1 in the only line.

Example

Input

5 60
2 4 6 5 2


Output

3
4 3 1 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e3 + 5;
const long long INF = 1LL << 59;
long long a[maxn], e[maxn], dp1[maxn][maxn * 10];
int dp[maxn][maxn * 10], b[maxn], c[maxn], d[maxn];
int main() {
  int n, t = 0;
  long long x;
  scanf("%d%I64d", &n, &x);
  int id = 1;
  for (int i = 1; i <= n; ++i) {
    scanf("%I64d", e + i);
    if (e[i] < e[id]) id = i;
  }
  if (x == 1) {
    printf("1\n%d\n", id);
    return 0;
  }
  int cnt = 0;
  for (long long i = 2; i * i <= x; ++i) {
    if (x % i == 0) {
      a[cnt] = i;
      b[cnt] = 0;
      while (x % i == 0) {
        ++b[cnt];
        x /= i;
      }
      c[cnt] = cnt ? c[cnt - 1] * (b[cnt - 1] + 1) : 1;
      t += b[cnt] * c[cnt];
      ++cnt;
    }
  }
  if (x != 1) {
    a[cnt] = x;
    b[cnt] = 1;
    c[cnt] = cnt ? c[cnt - 1] * (b[cnt - 1] + 1) : 1;
    t += b[cnt] * c[cnt];
    ++cnt;
  }
  c[cnt] = c[cnt - 1] * (b[cnt - 1] + 1);
  fill(dp[0], dp[0] + t + 1, n + 1);
  fill(dp1[0], dp1[0] + t + 1, INF);
  dp[0][0] = 0;
  dp1[0][0] = 0;
  for (int i = 1; i <= n; ++i) {
    long long y = e[i];
    for (int j = 0; j < cnt; ++j) {
      d[j] = 0;
      while (y % a[j] == 0) {
        ++d[j];
        y /= a[j];
      }
    }
    memcpy(dp[i], dp[i - 1], (t + 1) * sizeof(int));
    memcpy(dp1[i], dp1[i - 1], (t + 1) * sizeof(long long));
    for (int j = 0; j <= t; ++j) {
      int p = 0;
      for (int k = 0; k < cnt; ++k) {
        int q = j % c[k + 1] / c[k];
        p += min(q + d[k], b[k]) * c[k];
      }
      if (dp[i][p] > dp[i - 1][j] + 1) {
        dp[i][p] = dp[i - 1][j] + 1;
        dp1[i][p] = dp1[i - 1][j] + e[i];
      } else if (dp[i][p] == dp[i - 1][j] + 1 &&
                 dp1[i][p] > dp1[i - 1][j] + e[i])
        dp1[i][p] = dp1[i - 1][j] + e[i];
    }
  }
  if (dp[n][t] != n + 1) {
    printf("%d\n", dp[n][t]);
    for (int i = n; i > 0; --i) {
      long long y = e[i];
      for (int j = 0; j < cnt; ++j) {
        d[j] = 0;
        while (y % a[j] == 0) {
          ++d[j];
          y /= a[j];
        }
      }
      for (int j = 0; j < t; ++j) {
        int p = 0;
        for (int k = 0; k < cnt; ++k) {
          int q = j % c[k + 1] / c[k];
          p += min(q + d[k], b[k]) * c[k];
        }
        if (p == t && dp[i - 1][j] + 1 == dp[i][t] &&
            dp1[i - 1][j] + e[i] == dp1[i][t]) {
          printf("%d ", i);
          t = j;
          break;
        }
      }
    }
    puts("");
  } else
    puts("-1");
  return 0;
}