import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 } main {
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] c = sc.next().toCharArray(); c sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc String ans = "Yes"; ans "Yes" if(c[0] == c[1] && c[1] == c[2]) ans = "No"; c[0] == c[1] && c[1] == c[2] c[0] == c[1] c[0] c 0 c[1] c 1 c[1] == c[2] c[1] c 1 c[2] c 2 ans = "No" ans "No" System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   char[] c = sc.next().toCharArray();
 
   String ans = "Yes";
   if(c[0] == c[1] && c[1] == c[2]) ans = "No";
   System.out.print(ans);
 }
}