We have k switches arranged in a row, and each switch points up, down, left, or right. Whenever three successive switches all point in different directions, all three may be simultaneously turned so as to point in the fourth direction. Prove that this operation cannot be repeated infinitely many times.