Time Limit: 1 sec
Dividing a number by X1, the quotient is Q1 and the remainder is R1. What will be the quotient Q2 and remainder R2 when the number is divided by X2 ?
If X1 = 54, Q1 = 18, R1 = 50 and X2 = 73 then
the quotient is Q2 = 14, and remainder R2 = 0
The input file contains 4 integer numbers X1, Q1, R1 and X2 (X1, Q1, R1, X2<1000).
Output will show two integer numbers which are quotient Q2 and remainder R2 seperated by space in a separate line.
54 18 50 73
Problem Setter: Shahin ShamS