import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    } main {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String station = sc.next(); station sc.next() sc.next sc char[] s = new char[3]; s new char[3] 3 String word = "No"; word "No" for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        } {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        } s[i] = station.charAt(i) s[i] s i station.charAt(i) station.charAt station i if (i !=0 && s[i - 1] != s[i])
                word = "Yes"; i !=0 && s[i - 1] != s[i] i !=0 i 0 s[i - 1] != s[i] s[i - 1] s i - 1 i 1 s[i] s i word = "Yes" word "Yes" System.out.println(word) System.out.println System.out System System.out word String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String station = sc.next();
        char[] s = new char[3];
        String word = "No";

        for (int i = 0; i < 3; i++) {
            s[i] = station.charAt(i);
            if (i !=0 && s[i - 1] != s[i])
                word = "Yes";
        }

        System.out.println(word);


    }
}
