Ehab and another construction problem

CodeForces - 1088A