Under construction

Still being built. Things may change

Comparing Rooms

Time limit1sMemory limit1024 MB

Summary
Given two rectangles' side lengths, the task is to print M, P, or E depending on which room has the larger area or whether the areas are equal.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

Masha and Petya want to find out whose room is bigger. Masha's room is a rectangle measuring aa by bb meters, and Petya's room is a rectangle measuring cc by dd meters.

Write a program that determines whose room is bigger: Masha's or Petya's.

Input

Four natural numbers aa, bb, cc, and dd are given on one line, separated by spaces (1≤a,b,c,d≤10001 \le a, b, c, d \le 1000).

Output

If Masha's room is bigger, print the Latin letter M. If Petya's room is bigger, print the Latin letter P. If the two rooms have the same area, print the Latin letter E.

Examples1

  1. Example 1

    Input
    3 6 4 4
    
    Expected output
    M