Application of the Dynamic Coin Row problem.