Partial Teacher

CodeForces - 67A