e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 1: November 2 – 8. Introduction to C language. Part 1

Perimeter of rectangle

Find the perimeter of rectangle.

Input

The integer sides of rectangle a and b (1a, b1000).

Output

Print the perimeter of rectangle.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 4
Output example #1
14
Author Mykhailo Medvediev