import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    } main {
        //コード
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String str = scanner.nextLine(); str scanner.nextLine() scanner.nextLine scanner int maxLength = str.length(); maxLength str.length() str.length str String[] ar = str.split(""); ar str.split("") str.split str "" boolean flag = false; flag false for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        } int i=0; int i=0; i 0 i < maxLength i maxLength i++ i++ i {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        } {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        } if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            } ar[0].equals(ar[i]) != true ar[0].equals(ar[i]) ar[0].equals ar[0] ar 0 ar[i] ar i true {
                flag = true;
                break;
            } flag = true flag true break; if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        } flag {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } 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.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int maxLength = str.length();
        String[] ar = str.split("");

        boolean flag = false;
        for(int i=0; i < maxLength; i++) {
            if(ar[0].equals(ar[i]) != true) {
                flag = true;
                break;
            }
        }

        if (flag) {
            System.out.println("Yes");
        } else{
            System.out.println("No");
        }
    }
}
