SCU 2007 warmup contest 26

E: A strange procedure