import java.util.Scanner;

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

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    } main {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        } int i = 0; int i = 0; i 0 i < s.length() - 1 i s.length() - 1 s.length() s.length s 1 i++ i++ i {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        } {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        } if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            } s.charAt(i) != s.charAt(i + 1) s.charAt(i) s.charAt s i s.charAt(i + 1) s.charAt s i + 1 i 1 {
                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 s = scanner.nextLine();

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                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 s = scanner.nextLine();

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
} Main
import java.util.Scanner;

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

        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) != s.charAt(i + 1)) {
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
}
