12872 - Ruby and Sapphire   

Description

The prices of ruby and sapphire are 5$, 7$ respectively.
The total numbers of rubies and sapphires is N, and the overall value is M$.
How many rubies and how many sapphires are there?

Input

Two integers N, M, where 10,000 ≤ N, M ≤ 10,000

Output

Number of rubies and sapphires.
Note that there is a newline character at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss