Reminder: in case of any technical issues, you can use the lightweight website
m1.codeforces.com,
m2.codeforces.com,
m3.codeforces.com.
×

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

E. Mishka and Divisors

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputAfter 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 *a*_{1}, *a*_{2}, ..., *a*_{n} 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 ≤ *i*_{1} < *i*_{2} < ... < *i*_{m} ≤ *n* such that 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* ≤ 10^{12}).

The second line of the input contains *n* integers *a*_{1}, *a*_{2}, ..., *a*_{n} (1 ≤ *a*_{i} ≤ 10^{12}) — 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

Codeforces (c) Copyright 2010-2020 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Apr/08/2020 18:54:16 (f3).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|