Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
プログラミングでは 16 進数がよく使われます。
16 進数では 0, 1, ..., 9 の数字の他に A
, B
, C
, D
, E
, F
の 6 つのアルファベットを使い,それぞれ 10, 11, 12, 13, 14, 15 を表します。
この問題では 2 つのアルファベット X, Y が与えられます。
X と Y はどちらも A
, B
, C
, D
, E
, F
のうちどれかです。
X と Y を 16 進数として見たとき,どちらのほうが大きいかを判定してください。
制約
- X, Y は
A
,B
,C
,D
,E
,F
のうちどれかである。
入力
入力は以下の形式で標準入力から与えられる。
X Y
出力
X のほうが小さいならば <
,Y のほうが小さいならば >
,等しいならば =
と出力してください。
入力例 1
A B
出力例 1
<
10 < 11 です。
入力例 2
E C
出力例 2
>
14 > 12 です。
入力例 3
F F
出力例 3
=
15 = 15 です。
Score : 100 points
Problem Statement
In programming, hexadecimal notation is often used.
In hexadecimal notation, besides the ten digits 0, 1, ..., 9, the six letters A
, B
, C
, D
, E
and F
are used to represent the values 10, 11, 12, 13, 14 and 15, respectively.
In this problem, you are given two letters X and Y. Each X and Y is A
, B
, C
, D
, E
or F
.
When X and Y are seen as hexadecimal numbers, which is larger?
Constraints
- Each X and Y is
A
,B
,C
,D
,E
orF
.
Input
Input is given from Standard Input in the following format:
X Y
Output
If X is smaller, print <
; if Y is smaller, print >
; if they are equal, print =
.
Sample Input 1
A B
Sample Output 1
<
10 < 11.
Sample Input 2
E C
Sample Output 2
>
14 > 12.
Sample Input 3
F F
Sample Output 3
=
15 = 15.