local n, p = io.stdin:read("*n"), io.stdin:read("*n") print(p == n * p and "=" or "!=")