A Fraction Problem
View as PDFGiven two fractions  and 
, find any fraction that is strictly between 
 and 
.
That is, find any fraction  that satisfies:
Input Specification
The first line will contain four integers,  
.
Output Specification
Output  and 
 separated by a space. 
 and 
 must both be integers.
Sample Input
1 2 2 3
Sample Output
3 5
Note: the sample output is only one possible answer.
Comments