print('yes' if str(a)[-1] == '0' or str(b)[-1] == '0' else 'no')
print("yes" if a % 10 == 0 or b % 10 == 0 else "no")