Watto and Mechanism

CodeForces - 514C