Write a program to obtain length (L) and breadth (B) of a rectangle and check whether its area is greater or perimeter is greater or both are equal.

------ Input Format ------ 

- First line will contain the length (L) of the rectangle.
- Second line will contain the breadth (B) of the rectangle.

------ Output Format ------ 

Output 2 lines. 

In the first line print "Area" if area is greater otherwise print "Peri" and if they are equal print "Eq".(Without quotes).

In the second line print the calculated area or perimeter (whichever is greater or anyone if it is equal).

------ Constraints ------ 

$1 ≤ L ≤ 1000$
$1 ≤ B ≤ 1000$

----- Sample Input 1 ------ 
1
2

----- Sample Output 1 ------ 
Peri
6

----- explanation 1 ------ 
Area = 1 * 2 = 2 \
Peri = 2 * (1 + 2) = 6 \
Since Perimeter is greater than Area, hence the output is : \
Peri \
6

Difficulty: EASY
Tags: Geometry

Mathematics

Starter code:

Solutions:
a = int(input())
b = int(input())
area = a * b
peri = 2 * (a + b)
if area > peri:
	print('Area')
	print(area)
elif peri > area:
	print('Peri')
	print(peri)
else:
	print('Eq')
	print(area)


length = int(input())
breadth = int(input())
area = length * breadth
perimeter = 2 * (length + breadth)
if area > perimeter:
	print('Area')
	print(area)
elif perimeter > area:
	print('Peri')
	print(perimeter)
else:
	print('Eq')
	print(area)


L = int(input())
B = int(input())
area = L * B
perimeter = 2 * (L + B)
if area > perimeter:
	print('Area')
	print(area)
elif perimeter > area:
	print('Peri')
	print(perimeter)
else:
	print('Eq')
	print(area)


l = int(input())
b = int(input())
peri = 2 * (l + b)
area = l * b
if peri > area:
	print('Peri')
elif peri < area:
	print('Area')
else:
	print('Eq')
print(max(peri, area))


l = int(input())
b = int(input())
area = l * b
perimeter = 2 * l + 2 * b
if area > perimeter:
	print('Area')
	print(area)
elif area == perimeter:
	print('Eq')
	print(area)
else:
	print('Peri')
	print(perimeter)


l = int(input())
b = int(input())
a = l * b
p = 2 * (l + b)
if a > p:
	print('Area')
	print(a)
elif a < p:
	print('Peri')
	print(p)
else:
	print('Eq')
	print(a)


L = int(input())
B = int(input())
area = L * B
peri = 2 * (L + B)
if area > peri:
	print('Area')
	print(area)
elif peri > area:
	print('Peri')
	print(peri)
elif peri == area:
	print('Eq')
	print(area)


l = int(input())
b = int(input())
ar = l * b
per = 2 * (l + b)
if ar > per:
	print('Area')
	print(ar)
elif per > ar:
	print('Peri')
	print(per)
else:
	print('Eq')
	print(ar)


l = int(input())
b = int(input())
area = l * b
per = 2 * (l + b)
if area < per:
	print('Peri\n', per)
elif area == per:
	print('Eq\n', area)
else:
	print('Area\n', area)


a = int(input())
b = int(input())
perimeter = 2 * (a + b)
area = a * b
if area > perimeter:
	print('Area\n', area)
elif area < perimeter:
	print('Peri\n', perimeter)
elif area == perimeter:
	print('Eq', area)


L = int(input())
B = int(input())
area = L * B
peri = 2 * (L + B)
list = [area, peri]
if area > peri:
	print('Area')
elif area < peri:
	print('Peri')
else:
	print('Eq')
print(max(list))


x = int(input())
y = int(input())
if x * y > 2 * (x + y):
	print('Area')
	print(x * y)
elif x * y < 2 * (x + y):
	print('Peri')
	print(2 * (x + y))
else:
	print('Eq')
	print(x * y)