Imports System

Module Program
    Sub Main(args As String())
        Dim S As String = Console.ReadLine()

        If S = "AAA" Then
            Console.WriteLine("No")
            Exit Sub
        End If
        If S = "BBB" Then
            Console.WriteLine("No")
            Exit Sub
        End If

        Console.WriteLine("Yes")
    End Sub
End Module
