Message Made of Noise

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

Alisa wants to send a message to Eva using a number wire. The message is one English word.

Unfortunately, right now the number wire transmits just some noise: random integers from 00 to 109110^{9} - 1 inclusive. Alisa knows the sequence of the next 10,00010\\,000 integers that will be transmitted.

Fortunately, Alisa has a superpower: she can erase any number of elements from any positions in the sequence. The relative order of the remaining elements does not change.

Unfortunately, after that, around half of the integers will be lost in transmission: each transmitted integer will disappear with a probability of 1/21 / 2. The relative order of the remaining elements once again does not change.

How should Alisa and Eva act to transmit a given word?