program Station_and_Bus
    implicit none
    character(3):: s

    read*, s

    if (s(1:1) == s(2:2) .and. s(2:2) == s(3:3)) then
        print*, 'No'
    else
        print*, 'Yes'
    end if
end program Station_and_Bus