10039 - I2P homework1   

Description

The total number of chickens and rabbits is N, and overall they have M feet. How many chickens and how many rabbits are there?

Hint:

You might need to use the arithmetic operators + - * / for addition, subtraction, multiplication, and division.

 

Input

Two integers M and N, where 0<=N,M<=1000.

 

Output

Number of chickens and number of rabbits

 

Sample Input  Download

Sample Output  Download

Tags




Discuss