P26373 [AtCoder] Breakfast
普及
题目描述

Problem Description

It's a refreshing morning. Today's CODE THANKS FESTIVAL is going to be a blast. To enjoy it to the fullest, I need to have a good breakfast.

It takes $ A $ minutes to brew coffee and $ B $ minutes to toast bread. Assuming both preparations start simultaneously, how many minutes will it take for the breakfast preparations to be complete?

Input Format

The input is given from the standard input in the following format:

$ A $ $ B $

  • The first line contains two integers $A\ (1\ ≦\ A\ ≦\ 60),\ B\ (1\ ≦\ B\ ≦\ 60)$ separated by a space. This indicates that it takes $ A $ minutes to brew coffee and $ B $ minutes to toast bread.

Output Format

Output the time (in minutes) it takes for the breakfast preparations to be complete in one line.

Ensure to include a newline at the end of the output.

Sample Input and Output

Sample Input #1

10 5

Sample Output #1

10

Sample Input #2

42 42

Sample Output #2

42

Notes/Hints

Sample Explanation 1

In this case, it takes $ 10 $ minutes to brew coffee and $ 5 $ minutes to toast bread. If we start preparing both coffee and toast simultaneously, the toast will be ready after $ 5 $ minutes, and the coffee will be ready after $ 10 $ minutes. Therefore, output $ 10 $.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
10 5
样例输出
10