#CCBCMCHIN0000052. Tam giác hoặc hình thang (Triangle)

Tam giác hoặc hình thang (Triangle)

Triangle

Source: beecrowd

Version: Phuoc Hung OJ Extended

Problem Statement

Given positive real lengths A,B,CA,B,C, print the triangle perimeter if they form a non-degenerate triangle. Otherwise, regard A,BA,B as trapezium bases and CC as its height, and print area (A+B)C/2(A+B)C/2. Results are rounded to one decimal place; exact halfway values are rounded upward.

Input

One line contains three positive real numbers A,B,CA,B,C, each with at most one decimal digit.

Output

Print exactly one line Perimetro = X for a triangle, or Area = X otherwise; X has exactly one decimal place. Exact halfway values are rounded upward.

Subtasks

  • Subtask 1 (20 points): 0 < A,B,C <= 10; at most one decimal digit.

  • Subtask 2 (30 points): 0 < A,B,C <= 100; at most one decimal digit.

  • Subtask 3 (50 points): 0 < A,B,C <= 1000; at most one decimal digit.

Examples

Example 1

Input

6.0 4.0 2.0

Output

Area = 10.0

Explanation

For this input, the case-specific computation and the required exact output are shown above. The triangle is degenerate; trapezium area is 10.0.

Example 2

Input

3.0 4.0 5.0

Output

Perimetro = 12.0

Explanation

For this input, the case-specific computation and the required exact output are shown above. The lengths form a triangle with perimeter 12.0.