1

题目描述

For a string (x) ,Bobo define (x^{infty}) =xxx,,,which is x repeats for infinite times ,resulting in a string of infinite length. Bobo has two strings a and b. Find out the result comparing (a^{infty}) and (b^{infty}) in lexicographical order. You can refer the wiki page further information of Lexicographical Order.

输入描述

The input consist of several test cases terminated by end - of - file .

The first line of each test cases contains a string a,and the second line contains a string b

  • 1≤|a|, |b|≤(10^{5})
  • a, b consists of lower case letters
  • The total length of input strings does not exceed 2 x (10^{6})

输出描述

For each test cases , print "=" ,if (a^{infty}) = (b^{infty}) , otherwise, print "<",if (a^{infty}) < (b^{infty}) ,or ">",if (a^{infty}) > (b^{infty})

示例一

输入

aa

b

zzz

zz

aba

abaa

输出

<
=
>
原文地址:https://www.cnblogs.com/fate-/p/13332263.html