Brenda plays the role playing game Buffcraft. Shields, swords, books and other carried items do not change a character's stats in Buffcraft. The only way to raise a stat is to buff the character.
Buffcraft has two kinds of buffs. A direct buff raises the base value of a stat, and a percentage buff raises the stat by a fraction of that base value. To be precise, if the unbuffed base value of a stat is b and the character carries n direct buffs of strength d1,d2,…,dn together with m percentage buffs of strength p1,p2,…,pm, the resulting stat equals (b+d1+d2+⋯+dn)(100+p1+p2+⋯+pm)/100. The resulting stat can be fractional.
A character has only k buff slots. If more than k buffs are applied, only the last k stay active, so there is no reason to apply more than k buffs at once. The same buff cannot be applied twice.
Brenda is about to send her character on a raid and wants its health as high as possible. Choose the set of buffs that gives the maximum total health.
The first line contains four integers b, k, cd, cp: the base health of the character, the number of buff slots, the number of available direct buffs, and the number of available percentage buffs.
The second line contains cd integers di, the strengths of the direct buffs.
The third line contains cp integers pi, the strengths of the percentage buffs.
Every number in the input is at least 0 and at most 50000. If cd or cp is 0, the matching line is empty.
Print on the first line the number n of direct buffs and the number m of percentage buffs to apply (0≤n≤cd, 0≤m≤cp, 0≤n+m≤k).
Print on the second line the n indices of the chosen direct buffs in increasing order. Buffs are numbered from 1.
Print on the third line the m indices of the chosen percentage buffs in increasing order.
If n or m is 0, print an empty line in its place.
Several sets of buffs can reach the maximum health, so print the set that the following rule selects.