AtCoder Beginner Contest 211
A
Blood Pressure
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

You are given a person's systolic blood pressure, $A$, and diastolic blood pressure, $B$. Find the mean arterial pressure, $C$, which we define as follows:

翻译中…
  • $C = \frac{A-B}{3} +B$.
翻译中…

Constraints

翻译中…
  • $50 \leq B \leq A \leq 300$
  • All values in input are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

A B

翻译中…

Output

翻译中…

Print the value $C$. Your output is considered correct when its absolute or relative error from our answer is at most $10^{-5}$.

翻译中…

样例

Input #1
130 100
Output #1
110
We have $C = \frac{130-100}{3} +100 = 10 + 100 = 110$.
Input #2
300 50
Output #2
133.3333333
Note that although all the values in input are integers, the value to output may not be an integer.
Input #3
123 123
Output #3
123
题目信息
题号
abc211_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。