Problem - 375D - Codeforces