Find the six-digit number in which the first digit is one less than the second, the third digit is half the second, the fourth digit is three times the third and the last two digits are the sum of the fourth and fifth. The sum of all the digits is 24.