Rectangle Perimeter and Area
Given the length \(a\) and width \(b\) of a rectangle, compute its perimeter and area.
Input
Two lines contain \(a\) and \(b\).
The input satisfies:
- \(a, b >= 0\)
Output
Print exactly three lines. Line 1 is Nhap 2 canh cua hinh chu nhat. Line 2 is Chieu dai: Chieu rong: Chu vi hinh chu nhat la: P. Line 3 is Dien tich hinh chu nhat la: S. Replace \(P,S\) by the perimeter and area, formatted with at most six significant digits and no unnecessary trailing zeros.
Example
Input
0
0
Output
Nhap 2 canh cua hinh chu nhat
Chieu dai: Chieu rong: Chu vi hinh chu nhat la: 0
Dien tich hinh chu nhat la: 0
Comments