<filename>problem/10000~19999/10698/10698.py3.py
for _ in range(int(input())):
    x,y=input().split("=")
    if eval(x)==int(y):
        print("Case %d: YES" % (_ + 1))
    else:
        print("Case %d: NO" % (_ + 1))
<filename>problem/10000~19999/10698/10698.py3.py
for _ in range(int(input())):
    x,y=input().split("=")
    if eval(x)==int(y):
        print("Case %d: YES" % (_ + 1))
    else:
        print("Case %d: NO" % (_ + 1))