import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } main {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String s = stdIn.next(); s stdIn.next() stdIn.next stdIn char[] cs = s.toCharArray(); cs s.toCharArray() s.toCharArray s if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        } cs[0] == cs[1] && cs[1] == cs[2] cs[0] == cs[1] cs[0] cs 0 cs[1] cs 1 cs[1] == cs[2] cs[1] cs 1 cs[2] cs 2 {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();
        char[] cs = s.toCharArray();

        if(cs[0] == cs[1] && cs[1] == cs[2]){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}