题目描述
Problem Description
A certain pianist can play two songs simultaneously using both hands, meaning each hand plays a different song.
The playing time for one song is \( A \) seconds, and for the other song, it is \( B \) seconds.
This pianist starts playing these two different songs simultaneously. Therefore, the time the pianist stays on stage corresponds to the longer of the two playing times.
Please determine the time the pianist stays on stage.
Input Format
The input is given from the standard input in the following format:
\( A \) \( B \)
- The first line contains two integers \( A, B \) ( \( 1 \leq A, B \leq 1000 \) ) representing the playing times of the two songs, separated by a space.
Output Format
Output the time the pianist stays on stage in one line. Ensure to include a newline at the end of the output.
Sample Input and Output
Sample Input #1
5 10
Sample Output #1
10
Sample Input #2
600 600
Sample Output #2
600
Sample Input #3
250 200
Sample Output #3
250
Notes/Hints
Sample Explanation 1
Since \( 10 \) seconds is longer than \( 5 \) seconds, the answer is \( 10 \) seconds.
Sample Explanation 2
Both songs finish playing in \( 600 \) seconds. Therefore, the pianist stays on stage for \( 600 \) seconds.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分