Photo Scaling
Alice is reviewing the photos she took the previous day on her new phone. She experimented with various shooting modes, resulting in photos of different sizes.
Each photo has dimensions of A x B pixels.
The monitor screen where Alice views these photos has a resolution of C x D pixels.
Determine the dimensions of the photo in pixels when it is displayed in full-screen mode on the monitor.
Input
The first line of input provides the integers A and B, representing the dimensions of the photo. The second line provides the integers C and D, representing the resolution of the monitor.
Output
Output two integers on one line, indicating the dimensions of the photo when displayed on the monitor.
Examples
Note
All input numbers are integers, and the output numbers must also be integers. When rounding is necessary, round up to the nearest whole number (for example, 1.3 rounds to 2).