Fcoders Round #16 (Div M) { Sponsored by Anor System }