Ehab and a 2-operation task

CodeForces - 1088C