Company shake! represents each user's data as positive integers, converts each one into a data piece, concatenates the pieces, and saves the result in a file. A data piece starts with its length. If the length is L, the piece consists of L followed by L−1 numbers, and a piece with L=1 consists of the single number 1.
Suppose three users have data {2,5,5}, {1,4,5,1}, and {2,3,1}. Their pieces are {4,2,5,5}, {5,1,4,5,1}, and {4,2,3,1}, and the file stores the concatenation {4,2,5,5,5,1,4,5,1,4,2,3,1}.
The damaged file may contain extra numbers that were not in the original file. For each position, an integer is given that represents the likelihood that the number was also in the original file. Delete numbers so that the rest forms a correct file while minimizing the maximum likelihood among the deleted numbers.