SDE Path

Perimeter of a Rectangle

Easy

Perimeter of a Rectangle

Compute the perimeter of a rectangle from its length and width.

Input format

A single line with two positive integers L and W, the length and width.

Output format

Print the perimeter of the rectangle, which is 2 * (L + W).

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
3 4
Expected output
14
Example 2
Input
10 5
Expected output
30