Imports System

Module Program
    Sub Main(args As String())
        Dim tmpA As String() = Split(Console.ReadLine(), " ")

        Dim intA As Integer = CInt(tmpA(0))
        Dim intB As Integer = CInt(tmpA(1))
        Dim intC As Integer = CInt(tmpA(2))

        If intA = intB And intA = intC And intB = intC Then
            Console.WriteLine("NO")
            Exit Sub
        End If

        If intA <> intB And intA <> intC And intB <> intC Then
            Console.WriteLine("NO")
            Exit Sub
        End If

        Console.WriteLine("YES")


    End Sub
End Module
