Added the SPOJ version of Mecho.