Sergey's submission of D-Value | CodeChef