# Azerbaijan Programming Olympiad - 2nd Stage preparation

# Buffcraft

Brenda enjoys a new role-playing game Buffcraft. Shields, swords, books and other carry-on items do not affects character stats in Buffcraft. The only way to increase the stats of your character is to buff her.

There are two types of buffs in Buffcraft. Direct buffs increase a base value of the stat, while percentage buffs increase stats by the fraction of the base value. To be precise, if unbuffed base value of your character stat is **b**, you have buffed her using **n** direct buffs of strength `d`

, _{1}`d`

, ..., _{2}`d`

and _{n}**m** percentage buffs of strength `p`

, _{1}`p`

, ..., _{2}`p`

, the resulting stat will be equal to (_{m}**b** + `d`

+ _{1}`d`

+ ... + _{2}`d`

)(_{n}**100** + `p`

+ _{1}`p`

+ ... + _{2}`p`

) / _{m}**100**. Note that the resulting stat may be fractional.

Unfortunately, your character has only **k** buff slots and if you apply more than **k** buffs on her, only the
last **k** buffs remains active. Thus, there is no reason to apply more than **k** buffs simultaneously. You cannot apply the same buff more than once.

Brenda is going to send his character to raid and wants to buff her health to maximal possible value. She has some direct and some percentage buffs at her disposal and needs your help to select the set of buffs that leads to maximal possible total health.

#### Input

The first line contains four integers **b**, **k**, `c`

and _{d}`c`

- the base health of the character, the number of buff slots, the number of available directs buffs, and the number of available percentage buffs._{p}

The following line contains `c`

integers _{d}`d`

- strengths of direct buffs._{i}

The last line contains `c`

integer numbers _{p}`p`

- strengths of percentage buffs._{i}

All numbers are greater than or equal to zero, and less than or equal to fifty thousand.

#### Output

The first line must contain two integers **n** and **m** - the number of direct and percentage buffs to use (**0** ≤ **n** ≤ `c`

, _{d}**0** ≤ **m** ≤ `c`

, _{p}**0** ≤ **n** + **m** ≤ **k**).

The following line must contain **n** different numbers - indices of direct buffs to apply (buffs are numbered
from one).

The last line must contain **m** different numbers - indices of percentage buffs to apply (also numbered from one).

The resulting total health after application of all **n** + **m** buffs must be maximal possible.

70 3 2 2 40 30 50 40

2 1 1 2 1

1 2 3 4 6 6 5 8 10 7 9

2 0 2 1