Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-satrlarni-solishtirish

Compare two words

Easy 1000 ms 128 MB 28%
Share

Two words $a$ and $b$ of lowercase Latin letters are given. Compare them in lexicographic (dictionary) order: the words are compared letter by letter, and the word whose first differing letter comes earlier in the alphabet goes first; if one word is the beginning of the other, the shorter one goes first. Print < if $a$ goes first, > if $b$ goes first, and = if the words are equal.

Comparing two words lexicographically, letter by letter

Input

The first line contains $a$, the second line $b$.

Output

One character: <, > or =.

Note

$1 \le |a|, |b| \le 10^{5}$
$a$ and $b$ consist of lowercase Latin letters only

Examples

Input #1
kitob
kitobxon
Output #1
<
Input #2
olma
anor
Output #2
>

Sign in to submit a solution

Signing up is free and takes a minute.