In a four digit number all the four digits are different and sum of all digits is 27. In the number