import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone {
Scanner in
= new Scanner
(System.
in); int a
=Math.
abs(in.
nextInt()); int b = a%10;
a /= 100;
System.
out.
print((a
== b
? "=" : (a
> b
? (0 + a
):(0 + b
)))); }
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbiB7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJaW50IGE9TWF0aC5hYnMoaW4ubmV4dEludCgpKTsKCQlpbnQgYiA9IGElMTA7CgkJYSAvPSAxMDA7CgkJU3lzdGVtLm91dC5wcmludCgoYSA9PSBiID8gIj0iIDogKGEgPiBiID8gKDAgKyBhKTooMCArIGIpKSkpOwoJfQp9