if '*'==j:
if o*t==h:print('YES')
else:print('NO')
elif '/'==j:
try:
if o/t==h:print('YES')
else:print('NO')
except:print('NO')
elif '-'==j:
if o-t==h:print('YES')
else:print('NO')
elif '+'==j:
if o+t==h:print('YES')
else:print('NO')
else:0/0
try:
if {
'+': lambda o, t, h: o + t == h,
'-': lambda o, t, h: o - t == h,
'*': lambda o, t, h: o * t == h,
'/': lambda o, t, h: o / t == h,
}.get(j)(o, t, h):
print('YES')
else:
print('NO')
except KeyError:
print('Неизвестная функция')
except ZeroDivisionError:
print('Деление на ноль')
try:
if j in ['*', '/', '-', '+']:
d = eval(f'o{j}t')
print('YES' if d==h else 'NO')
else:0/0
except:print('NO')