x, y = map(int, input().split()) if abs(x) + abs(y) < 10: print('YES') else: print('NO')