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 0 to 109−1 inclusive. Alisa knows the sequence of the next 10,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/2. The relative order of the remaining elements once again does not change.
How should Alisa and Eva act to transmit a given word?