P27621 [洛谷] [Language Month Competition 202407] True
普及-
题目描述

Background

Once upon a time, there was a glorious kingdom where Little A was the king. He believed that his kingdom was not yet real, so he decided to bestow reality upon it.

Problem Description

Little A knew that his kingdom had three attributes, and their sum should exactly be $10000$. However, the attributes he currently saw were not as they should be: Little A saw the first attribute magnified by $10$ times and the second attribute reduced by $10$ times, but he could not see the third attribute.

Now, Little A wants to know the true values of these three attributes to make his kingdom real.

Input Format

A single line containing two integers $a, b$, representing the values of the first and second attributes as seen by Little A.

Output Format

Output a single line with three integers, representing the true values of the three attributes of Little A's kingdom.

Sample Input and Output

Sample Input #1

40000 300

Sample Output #1

4000 3000 3000

Sample Input #2

50000 100

Sample Output #2

5000 1000 4000

Sample Input #3

4510 232

Sample Output #3

451 2320 7229

Notes

Explanation of Sample 1

The first attribute is magnified by $10$ times, so its true value should be divided by $10$, which is $4000$. The second attribute is reduced by $10$ times, so its true value is $3000$. The last value should be $10000$ minus $4000$ and $3000$, which is $3000$.

Explanation of Sample 2

The first attribute is magnified by $10$ times, so its true value should be divided by $10$, which is $5000$. The second attribute is reduced by $10$ times, so its true value is $1000$. The last value should be $10000$ minus $5000$ and $1000$, which is $4000$.

Explanation of Sample 3

The first attribute is magnified by $10$ times, so its true value should be divided by $10$, which is $451$. The second attribute is reduced by $10$ times, so its true value is $2320$. The last value should be $10000$ minus $451$ and $2320$, which is $7229$.

Data Range

For $100\%$ of the data, $1 \le a \le 100000$, $1 \le b \le 1000$, and $a$ is a multiple of $10$. The results are guaranteed to be non-negative.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
40000 300
样例输出
4000 3000 3000