Functions
Function-02
Function-03
Function-04
~/algor $ cat problems/funksiya-tortburchak-perimetri
Perimeter of a rectangle
Easy
1000 ms
128 MB
21%
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.
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