Module Module1

    Sub Main()
        Dim a1, a2, i1, i2, i3 As Integer
        Dim state As Integer
        a1 = Console.ReadLine
        a2 = Console.ReadLine
        For i As Integer = 1 To a2
            i1 = Console.ReadLine
            i2 = Console.ReadLine
            i3 = Console.ReadLine
            If i2 - i1 < i3 Then
                state = state + 1
            End If
        Next
        If state = 0 Then
            Console.WriteLine("Yes")
        Else
            Console.WriteLine("No")
        End If
        Console.ReadLine()
    End Sub

End Module
