Statement
Statement language
You are given positive integers and . Over all nonnegative real numbers satisfying , find the maximum possible value of
Input
The input is given from Standard Input in the following format:
Output
Let be the maximum value. Print two positive integers , separated by a space, such that .
Constraints
- .
- .
Subtasks
Samples
Sample 1
Input
5 7
8 1 2 1 8
Output
7 2
Sample 2
Input
4 11
2 2 2 2
Output
33 8
Sample 3
Input
2 10
3 7
Output
2026 2026