Problem - 1082G - Codeforces