Problem Description

Read a and b for equation a*x + b = 0. Output x as reduced fraction p/q. If no solution output NONE. If infinite solutions output ALL.

Input Format

One line: a b.

Output Format

p/q or NONE or ALL.

Sample Test Case

Input:
6 -9
Output:
3/2

Constraints

a,b are integers in -10^9..10^9.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next