Skip to content
UPEEC

Rectangle: Perimeter and Area

Easy#basics#math· solved by 0 · time limit 2.0 s

Given the width and height of a rectangle, print its perimeter and its area.

Input

Two integers ww and hh.

Output

Perimeter and area separated by a space, each with 2 decimals.

Constraints

1≤w,h≤1041 \le w, h \le 10^4

Sample 1

Input

3 4

Output

14.00 12.00

Sign in or join free to run and submit your solution.