eolymp
bolt
Try our new interface for solving problems
Problems

Rectangle

Rectangle

Find the perimeter and area of the rectangle. \InputFile Each line represents a separate test and contains the length $n$ and the width $m~(1 \le n, m \le 1000)$ of the rectangle. \OutputFile For each test, print the perimeter and area of the rectangle in one line.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3 1
5 3
10 7
Output example #1
8 3
16 15
34 70