#1965. 区间最值和的最大值

区间最值和的最大值

当前没有测试数据。

Background

Special for beginners, ^_^

Description

现在有一个长度为 nn 的序列 aa,求出一个长度大于等于 kk 的区间使得这个区间内的最大值与最小值的和最大,你需要求出这个和。

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.