#C4865. Photo Fit Check
Photo Fit Check
Photo Fit Check
Given a photo with dimensions w (width) and h (height), and a frame with dimensions W and H, determine if the photo can be placed inside the frame without being cropped. The photo fits if and only if its width and height do not exceed the frame's dimensions, i.e., if $$w \leq W \text{ and } h \leq H.$$
Read the input from stdin
and output the result to stdout
as either True
or False
.
inputFormat
The input consists of two lines:
- The first line contains two integers separated by space representing the width and height of the photo, respectively.
- The second line contains two integers separated by space representing the width and height of the frame, respectively.
outputFormat
Output a single word: True
if the photo fits entirely within the frame (i.e. photo_width \leq frame_width and photo_height \leq frame_height), otherwise output False
.## sample
16 20
20 25
True