import java.util.*;
class Main {
	public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        String s = sc.next();
        sc.close();
        char t = s.charAt(0);

        for (int i = 1; i < 3; i++) {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

} import java.util.*; util.* java class Main {
	public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        String s = sc.next();
        sc.close();
        char t = s.charAt(0);

        for (int i = 1; i < 3; i++) {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

} Main public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        String s = sc.next();
        sc.close();
        char t = s.charAt(0);

        for (int i = 1; i < 3; i++) {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } main {
		final Scanner sc = new Scanner(System.in);

        String s = sc.next();
        sc.close();
        char t = s.charAt(0);

        for (int i = 1; i < 3; i++) {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc char t = s.charAt(0); t s.charAt(0) s.charAt s 0 for (int i = 1; i < 3; i++) {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        } int i = 1; int i = 1; i 1 i < 3 i 3 i++ i++ i {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        } {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        } if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            } t != s.charAt(i) t s.charAt(i) s.charAt s 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
import java.util.*;
class Main {
	public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        String s = sc.next();
        sc.close();
        char t = s.charAt(0);

        for (int i = 1; i < 3; i++) {
            if(t != s.charAt(i)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

}
