SCU 2005' Warmup Contest 18

B: Make a Sequence