All problems

Problem 807

Profit or Loss

Easy · 10 pts · Math, Basics, Conditionals

Problem

A shopkeeper buys an item for COST and sells it for PRICE. If PRICE is higher than COST they make a profit of PRICE - COST; if it is lower they make a loss of COST - PRICE; if the two are equal there is neither. Print Profit followed by the amount, Loss followed by the amount, or the words No Profit No Loss.

Input

A single line with two integers COST and PRICE.

Output

Print 'Profit X', 'Loss X' or 'No Profit No Loss'.

Constraints

1 <= COST, PRICE <= 10^9

Example input

500 650

Example output

Profit 150

Explanation

Buying for 500 and selling for 650 earns 650 - 500 = 150 more than was paid, so the answer is Profit 150.

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

Previous: Last Digit of a Number Next: Day Name from Number