Problem - 582A - Codeforces