All problems

Problem 769

Rectangle Area and Perimeter

Easy · 10 pts · Math, Basics, Geometry

Problem

A rectangle has length L and width W. Print its area and its perimeter. The area is the number of unit squares inside it, L × W, and the perimeter is the total length of its four sides, 2 × (L + W). The area can reach 10^18 for the largest inputs, so use a 64-bit integer type.

Input

A single line with two integers L and W.

Output

Print the area and the perimeter separated by a space.

Constraints

1 <= L, W <= 10^9

Example input

5 3

Example output

15 16

Explanation

A 5 by 3 rectangle has area 5 × 3 = 15 and perimeter 2 × (5 + 3) = 16, so the answer is 15 16.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Seconds to Clock Time Next: Square and Cube