import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    }
} Main public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    } main {
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String input = s.nextLine(); input s.nextLine() s.nextLine s boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2))); isSame String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2))) String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) String.valueOf(input.charAt(0)).equals String.valueOf(input.charAt(0)) String.valueOf String input.charAt(0) input.charAt input 0 String.valueOf(input.charAt(1)) String.valueOf String input.charAt(1) input.charAt input 1 String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2))) String.valueOf(input.charAt(1)).equals String.valueOf(input.charAt(1)) String.valueOf String input.charAt(1) input.charAt input 1 String.valueOf(input.charAt(2)) String.valueOf String input.charAt(2) input.charAt input 2 System.out.println(isSame ? "No" : "Yes") System.out.println System.out System System.out isSame ? "No" : "Yes" isSame "No" "Yes" String args[] args public class Main {
    public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    }
} public class Main {
    public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)));
   
    	System.out.println(isSame ? "No" : "Yes");
    }
}