s = int(input()) k = int(input()) if s < 5 or k < 5: print("ДА") else: print("НЕТ")