import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] sp = S.split("");
        if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] sp = S.split("");
        if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] sp = S.split("");
        if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] sp = S.split("");
        if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc String[] sp = S.split(""); sp S.split("") S.split S "" if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        } sp[0].equals(sp[1]) && sp[0].equals(sp[2]) sp[0].equals(sp[1]) sp[0].equals sp[0] sp 0 sp[1] sp 1 sp[0].equals(sp[2]) sp[0].equals sp[0] sp 0 sp[2] sp 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 sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] sp = S.split("");
        if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] sp = S.split("");
        if(sp[0].equals(sp[1]) && sp[0].equals(sp[2])) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} Main
import java.util.*;

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