Cleopatra's Circlet#4860

Cleopatra's Circlet

1 second
128 megabytes
Medium

Anya is a passionate lover of jewelry. Her collection includes many diamonds, emeralds and adamants.

... Urgent news! Cleopatra's priceless serpentine ruby was stolen!

Three days ago, the world was shocked by the sensational news: a research expedition found a secret room in one of the temples built during the times of the great Egyptian empress Cleopatra. In it, in addition to the bronze statue of the empress, a strikingly beautiful tiara was discovered, which was previously considered to be completely lost! Scientists have reported that the diadem is topped with a scarlet -carat ruby ​​in the shape of a snake head. However, literally a couple of hours ago, the news arrived that the priceless jewelry had been mutilated: someone had crept into the tiara's storage room and cut out a ruby ​​from it! Police establish a circle of suspects ...

Hearing about the theft of a ruby, Anya immediately rushed to investigate information in the black markets. During the day, she discovered announcements about the sale of a ruby in the form of a snake head, claiming that this is exactly the stolen ancient value. Anya will not forgive herself if she misses such an invaluable exhibit for her collection, so she ordered her assistant Gleb to urgently buy all these stones, hoping to acquire a real relic among them.

Having bought all stones, Gleb immediately made several test measurements, weighed some sets of them, and sent the results to Anya by e-mail. In the meantime, she consulted with the famous antiquity researcher Andre Shesto-Mert about the stolen jewel and learned that, according to all available historical sources, the ruby weighed not carat, as the journalists claimed, but carat!

Knowing the results of Gleb's weighings, and considering that all fake stones weigh carats, and only a real serpentine ruby can weigh carats, determine which of the stones purchased may actually be the lost relic of the great empress of the past.

Input

The first line contains four integers , , and (1 \leq n \leq 200, 1 \leq a, b \leq 10^6, a \neq b, 1 \leq k \leq 1000).

Next lines describe the weighting carried out by Gleb.

The first number in the -th description is w_i (1 \leq w_i \leq 200000000), the total weight of the group of stones that participated in -th weighing.

The second number is m_i (1 \leq m_i \leq n) - the number of stones involved in the -th weighing. Then follow m_i integers sorted in ascending order — the numbers of the stones that participated in -th weighing.

Output

If there are no serpentine ruby stones among Gleb's bought, print the string "**Fail**" (without quotes).

If the stolen ruby can be present among the stones, then print in the first line the number of all possible candidates for the role of an ancient relic, and in the second line - the numbers of possible options. You can print numbers in any order.

If Gleb at some point was mistaken in the calculations, and the information on weighings sent to him cannot correspond to reality, output the line "**Impossible**" (without quotes).

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Note

In the first test from the first weighing we conclude that the first and third stones are guaranteed fake. On the other hand, among the second, third and fourth stones there is exactly the real one. It means that the second or fourth stone can be real.

In the second test, Gleb was mistaken in measurements, because from the first two measurements it follows that all the stones are fake, and from the last - that the real stone, however, is among them.

In the third test, the results clearly indicate that both acquired stones are fake.