Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/orta-arifmetik

Arithmetic mean

Easy 1000 ms 64 MB 9%
Share

Two integers $a$ and $b$ are given. Find their arithmetic mean:

$$\frac{a + b}{2}$$

Points a and b on the number line; the midpoint between them is the answer

Input

One line with two integers: $a$ and $b$.

Output

One number — the arithmetic mean, with exactly 1 digit after the decimal point (for example, 2.5). A whole result is written the same way: 4.0.

Note

$-10^{9} \le a, b \le 10^{9}$

Examples

Input #1
2 3
Output #1
2.5
Input #2
4 4
Output #2
4.0

Sign in to submit a solution

Signing up is free and takes a minute.