import std;

void main() {
    int N, P;
    readf("%d %d\n", N, P);

    if (P != N * P) "!".write;
    "=".writeln;
}