Average of Two Numbers
Compute the integer average of two non-negative numbers.
Input format
A single line with two non-negative integers A and B.
Output format
Print the average (A + B) / 2 using integer division (drop any fraction).
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
4 6Expected output
5Example 2
Input
3 8Expected output
5