eolymp
bolt
Try our new interface for solving problems
Problems

Easy problem for Dino

Easy problem for Dino

Given two different integers $a$ and $b$. Find such integer $k$ that $|a - k| = |b - k|$. Note: $|x|$ means the absolute value of $x$. \InputFile Two integers $a$ and $b~(-10^9 \le a, b \le 10^9, a \ne b)$. \OutputFile If the value of $k$ doesn't exist, print "\textbf{-}". Otherwise print $k$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
10 5
Output example #1
-
Input example #2
6 2
Output example #2
4
Source Semifinals, Azerbaijan Olympiad 2019-2020