Sergey's submission of Even Edges | CodeChef