Indeed, 1,3,9,27 doesn't work in any except the A+B+C+D=40kg.