Getting desired output but it's showing WA

Please someone help me with cutting recipes.
I’m getting the desired output but its showing wrong answer when I submit it.
Here is the link for the code:

[link text][1]

[1]:" type=“text/javascript” >

I think, you understood the problem wrong. Try this test case:

2 9 6
Your output:
9 6
Correct output:
3 2

Thankyou :slight_smile:
I’ll make the desired changes.