Updated Codeforces 2nd problem

A_Watermelon