#816. 三个朋友

三个朋友

No submission language available for this problem.

Background

Special for beginners, ^_^

Description

三个朋友要见面。最初,第一个朋友在坐标轴的 x=ax=a 处,第二个和第三个朋友分别在坐标轴的 x=bx = bx=cx = c 处。

在一分钟内,这三个人可以改变一次自己的位置:向左边走一步、向右边走一步或者在原地不动。

假设这三个人移动后的位置是 AABBCC,那么这三个人的距离定义为:AB+AC+BC|A- B| + |A-C| + |B-C|

请问在一分钟后,三个人的距离最小是多少?

Format

Input

Two integers x and y, satisfying 0x,y327670\leq x,y\leq 32767 .

Output

One integer, the sum of x and y.

Samples

123 500
623

Limitation

1s, 1024KiB for each test case.