def judge(t):
    a, b = t
    c = 0xFFFF
    return (c & a) == (c & b)