favorite We need a little bit of your help to keep things running, click on this banner to learn more

Azərbaycan Respublika Olimpiadasının yarımfinalı 2019-2020

Easy problem for Dino

The math teacher asks Dino a very simple question: Given two different integers a and b. Find such integer k that |a - k| = |b - k|. Warning: |x| means absolute value.


Two integers a and b (-109a, b109, ab).


If the value of k doesn't exist, print - , 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
Source Semifinals, Azerbaijan Olympiad 2019-2020