Problem - 377B - Codeforces