Problem - 601B - Codeforces