All tasks
Easymath

Rectangle Area and Perimeter

Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0

Statement

One line contains the sides a and b of a rectangle. Print two numbers on one line separated by a space: the area and the perimeter.

Examples

Example 1
Input
3 4
Output
12 14
Example 2
Input
1 1
Output
1 4

Constraints

  • 1 ≤ a, b ≤ 10^9
Solve this task to unlock the editorial.

AI tutor

Stuck? Get a nudge — the tutor explains the idea, it never hands you the solution.