The number of people attending the parade is a 4-digit odd number. The number of thousands is the greatest digit. The number of ones is triple the number of hundreds. The number of tens is double the sum of the number of hundreds and ones. The sum of the digits is 21. How many people are attending the parade