Problem G: 周长与面积

Problem G: 周长与面积

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 26  Solved: 18
[Status] [Submit] [Creator:]

Description

长方形的周长计算公式为:周长=2×(长+宽),面积计算公式为面积=长×宽,对于任一长方形,输入它的长和宽,计算它的周长和面积并输出。

Input

一行:2个整数,分别代表长方形的长和宽。

Output

一行:长方形的周长和面积,两个数据间以空格分割。

Sample Input Copy

4 6

Sample Output Copy

20 24