Problems
121 - Quotient
SUBMIT PROBLEM

Quotient

Time Limit: 1 sec

 

The Problem

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 ?

 

Example:

If X1 = 54, Q1 = 18, R1 = 50 and X2 = 73 then

the quotient is Q2 = 14, and remainder R2 = 0

 

 

The Input

The input file contains 4 integer numbers X1, Q1, R1 and X2 (X1, Q1, R1, X2<1000).

 

The Output

Output will show two integer numbers which are quotient Q2 and remainder R2 seperated by space in a separate line.

 

Sample Input

54 18 50 73

 

Sample Output

14 0

 

 

 

 

Problem Setter: Shahin ShamS