Problem - 1285D - Codeforces