Output a 4-digit code that follows these rules: the first digit is odd, the second digit is a multiple of 3, the third digit is divisible by 5, and the fourth digit is equal to the sum of the first three digits.