C - POW Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 300

問題文

XY 回掛けたものを「XY 乗」といい、\text{pow}(X,Y) で表します。 例えば \text{pow}(2,3)=2\times 2\times 2=8 です。

3 つの整数 A,B,C が与えられるので、\text{pow}(A,C)\text{pow}(B,C) の大小を比較してください。

制約

  • -10^9 \leq A,B \leq 10^9
  • 1 \leq C \leq 10^9
  • 入力は全て整数

入力

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

A B C

出力

\text{pow}(A,C)< \text{pow}(B,C) なら < を、\text{pow}(A,C)>\text{pow}(B,C) なら > を、\text{pow}(A,C)=\text{pow}(B,C) なら = を出力せよ。


入力例 1

3 2 4

出力例 1

>

\text{pow}(3,4)=81, \text{pow}(2,4)=16 です。


入力例 2

-7 7 2

出力例 2

=

\text{pow}(-7,2)=49, \text{pow}(7,2)=49 です。


入力例 3

-8 6 3

出力例 3

<

\text{pow}(-8,3)=-512, \text{pow}(6,3)=216 です。

Score : 300 points

Problem Statement

For a base number X, the product of multiplying it Y times is called X to the Y-th power and represented as \text{pow}(X, Y). For example, we have \text{pow}(2,3)=2\times 2\times 2=8.

Given three integers A, B, and C, compare \text{pow}(A,C) and \text{pow}(B,C) to determine which is greater.

Constraints

  • -10^9 \leq A,B \leq 10^9
  • 1 \leq C \leq 10^9
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C

Output

If \text{pow}(A,C)< \text{pow}(B,C), print <; if \text{pow}(A,C)>\text{pow}(B,C), print >; if \text{pow}(A,C)=\text{pow}(B,C), print =.


Sample Input 1

3 2 4

Sample Output 1

>

We have \text{pow}(3,4)=81 and \text{pow}(2,4)=16.


Sample Input 2

-7 7 2

Sample Output 2

=

We have \text{pow}(-7,2)=49 and \text{pow}(7,2)=49.


Sample Input 3

-8 6 3

Sample Output 3

<

We have \text{pow}(-8,3)=-512 and \text{pow}(6,3)=216.