题目描述
Problem Description
Score: $ 100 $ points
The Paken Camp 20XX was held over two days without accommodation, with $ A $ participants on the first day and $ B $ participants on the second day.
What is the minimum and maximum number of participants across the entire camp, i.e., the number of people who participated on at least one of the two days?
Input Format
The input is given from the standard input in the following format:
\(A\) \(B\)
Output Format
Output the minimum and maximum number of participants in this order, separated by a space. Do not forget the final newline in the output.
Sample Input and Output
Sample Input #1
4 3
Sample Output #1
4 7
Sample Input #2
5 5
Sample Output #2
5 10
Sample Input #3
98 99
Sample Output #3
99 197
Notes/Hints
Subtasks
There are no subtasks for this problem. Correctly solving all cases will award $ 100 $ points.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
4 3
样例输出
4 7