Problem - 710D - Codeforces