Find three consecutive integers such that the sum of the first and the third increased by 8 is 40 more than the second.