import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } main {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String str = scanner.next(); str scanner.next() scanner.next scanner for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        } int i = 1; int i = 1; i 1 i < 3 i 3 i ++ i ++ i {
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        } {
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        } if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            } str.charAt(0) != str.charAt(i) str.charAt(0) str.charAt str 0 str.charAt(i) str.charAt str i {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        for (int i = 1; i < 3; i ++){
            if (str.charAt(0) != str.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}
