#C14678. Vote Distribution Among Candidates
Vote Distribution Among Candidates
Vote Distribution Among Candidates
You are given a total number of votes, T. The votes are distributed among three candidates: Bob, Alice, and Charlie. Bob receives B votes. Alice receives 15% more votes than Bob, i.e., A = 1.15B. Charlie receives 10% more votes than Alice, i.e., C = 1.10A. The sum of the votes must equal T.
This forms the equation: $$B + 1.15B + 1.10 \times 1.15B = T$$. Solve for B and then compute A and C accordingly. Finally, output the votes for Bob, Alice, and Charlie as three integers separated by a space. For the purpose of this problem, rounding is applied to each candidate's votes.
inputFormat
The input is provided via standard input (stdin) and contains a single integer T, representing the total number of votes.
outputFormat
Output three integers separated by a space in the order: votes for Bob, votes for Alice, and votes for Charlie. The result must be printed to standard output (stdout).
## sample2500
732 842 926