B - Fractional Comparison Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

問題文

整数 A,C0 でない整数 B,D が与えられます。 \frac{A}{B}<\frac{C}{D} ならば < を、 \frac{A}{B}>\frac{C}{D} ならば > を、 \frac{A}{B}=\frac{C}{D} ならば = を 出力してください。

制約

  • -100 \leq A,B,C,D \leq 100
  • B,D\neq 0
  • A,B,C,D は整数

入力

入力は以下の形式で標準入力から与えられる。

A B C D

出力

問題文の指示に従って、< , > , = のいずれか 1 つを出力せよ。


入力例 1

1 2 1 3

出力例 1

>

\frac{1}{2}>\frac{1}{3} であるため、> を出力します。


入力例 2

-3 -6 1 2

出力例 2

=

\frac{-3}{-6}=\frac{1}{2} であるため、= を出力します。 与えられる分数は既約とは限らず、 また入力は負の場合もあることに注意してください。


入力例 3

-1 3 1 -4

出力例 3

<

\frac{-1}{3}<\frac{1}{-4} であるため、< を出力します。

Problem Statement

You are given integers A and C, and non-negative integers B and D. If \frac{A}{B}<\frac{C}{D}, print <; if \frac{A}{B}>\frac{C}{D}, print >; if \frac{A}{B}=\frac{C}{D}, print =.

Constraints

  • -100 \leq A,B,C,D \leq 100
  • B,D\neq 0
  • A, B, C, and D are integers.

Input

The input is given from Standard Input in the following format:

A B C D

Output

Print one of <, >, and = according to the Problem Statement.


Sample Input 1

1 2 1 3

Sample Output 1

>

We have \frac{1}{2}>\frac{1}{3}, so you should print >.


Sample Input 2

-3 -6 1 2

Sample Output 2

=

We have \frac{-3}{-6}=\frac{1}{2}, so you should print =. Note that the given fractions may be reducible, and the given integers may be negative.


Sample Input 3

-1 3 1 -4

Sample Output 3

<

We have \frac{-1}{3}<\frac{1}{-4}, so you should print <.