import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	}

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

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc Set<Character> set = new HashSet<>(); set new HashSet<>() for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			set.add(s.charAt(i));
		} {
			set.add(s.charAt(i));
		} set.add(s.charAt(i)) set.add set s.charAt(i) s.charAt s i if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		} set.size() == 1 set.size() set.size set 1 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	}

} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		Set<Character> set = new HashSet<>();
		for(int i = 0; i < s.length(); i++) {
			set.add(s.charAt(i));
		}

		if(set.size() == 1) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

	}

}
