Telescope

No attempts yetTime limit5sMemory limit128 MB

Problem

Byteasar is going to watch a meteor shower tonight, and he has an exact forecast of its course. The shower is made up of nn meteors; the ii-th meteor appears tit_i seconds after midnight, so it is visible during the time interval from moment ti1t_i - 1 to moment tit_i. Byteasar counts a meteor as observed only if he watches it for the entire time it is visible.

Byteasar will look at the sky from a nearby hill through a telescope. The telescope is coin-operated: for every cc bythalers inserted it lets him watch the sky for exactly cc seconds. The device is a little worn, so after a coin is inserted he must wait rr seconds before anything becomes visible. Only one coin is accepted at a time, so if he inserts a coin worth cc, the next coin can be accepted only after at least r+cr + c seconds have passed.

Byteasar has mm coins in his pocket, worth c1,,cmc_1, \dots, c_m bythalers, and will use them to pay for the telescope. Determine the maximum number of meteors he can observe.

Input

The first line contains three integers nn, mm, and rr (1n1001 \le n \le 100, 1m101 \le m \le 10, 1r1081 \le r \le 10^8). The second line contains nn integers t1,,tnt_1, \dots, t_n in increasing order (1ti1081 \le t_i \le 10^8). The third line contains mm integers c1,,cmc_1, \dots, c_m (1ci1081 \le c_i \le 10^8).

Output

Print one integer: the maximum number of meteors Byteasar can observe with the telescope.

Hint

In the figure above, the black rectangles mark the seconds during which each meteor is visible. To observe 6 meteors in the sample, Byteasar inserts his coins at moments 2-2, 22, and 99, using the values 11, 55, and 22 bythalers in that order.