program main
 implicit none
 character(3) :: s
  read *, s
  if (s=='AAA') then
  write (*,'(a)') 'No'
  else if (s=='BBB') then
  write (*,'(a)') 'No'
  else 
  write (*,*) 'Yes'
  end if
end program main