You are given two positive integers, a and b. Your task is to calculate the average of these two integers, denoted as x, and print the value of x rounded up to the nearest integer.
Input Format
The input consists of two space-separated positive integers:
a (1 ≤ a ≤ 10^6)
b (1 ≤ b ≤ 10^6)
Output Format
Print a single integer: the average x rounded up to the nearest integer.
Function Signature
python
def rounded_average(a: int, b: int) -> int:
pass
Examples
Example 1
Input:
text
3 5
Output:
text
4
Explanation:
The average is (3 + 5) / 2 = 4.0. Rounding up gives 4.
Example 2
Input:
text
7 2
Output:
text
5
Explanation:
The average is (7 + 2) / 2 = 4.5. Rounding up gives 5.
Example 3
Input:
text
10 20
Output:
text
15
Explanation:
The average is (10 + 20) / 2 = 15.0. Rounding up gives 15.
Implementation
Please place your solution in the /app/ directory. Make sure your code is well-commented and follows good coding practices.
Important: place your implementation at /app/solution.py so the verifier can run it.