SCU 2006' Warmup Contest 2

C: The Cubic End