Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/funksiya-tortburchak-perimetri

Perimeter of a rectangle

Easy 1000 ms 128 MB 21%
Share

Write a function Perimeter(a, b) that returns the perimeter of a rectangle with sides $a$ and $b$.

Example 1: Perimeter(3, 5) → 16

Example 2: Perimeter(10, 1) → 22

Write only the function body.

A rectangle with sides a and b goes into the function Perimeter, which returns its perimeter

Input

One line with two positive integers $a$ and $b$ — the arguments of the function.

Output

The value returned by the function: an integer.

Note

$1 \le a, b \le 10^{9}$

Examples

Input #1
3 5
Output #1
16
Input #2
10 1
Output #2
22

Sign in to submit a solution

Signing up is free and takes a minute.