CMIMC 2020 Power Problem 6.1

Consider a code with variable length \mathcal{C}=\{1,01,001,0001\} in which each of the codewords are transmitted with probabilities \frac{1}{2}, \frac{1}{4}, \frac{1}{8}, \frac{1}{8} respectively. What is the probability that a randomly chosen bit in a long stream of transmission is a 1?