SCU 2006 Warmup Contest 10

A: Ancient Keyboard