import java.util.*;


public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	}

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

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	}

} Main static void log(String s) {
		System.out.println(s);
	} log {
		System.out.println(s);
	} System.out.println(s) System.out.println System.out System System.out s String s s static void log(int i) {
		System.out.println(i);
	} log {
		System.out.println(i);
	} System.out.println(i) System.out.println System.out System System.out i int i i public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	} main {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc char array[] = input.toCharArray(); array input.toCharArray() input.toCharArray input boolean existBus = false; existBus false if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		} array[0]!=array[1] array[0] array 0 array[1] array 1 existBus =true existBus true if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		} array[1]!=array[2] array[1] array 1 array[2] array 2 existBus =true existBus true if(array[0]!=array[2]) {
			existBus = true;
		} array[0]!=array[2] array[0] array 0 array[2] array 2 {
			existBus = true;
		} existBus = true existBus true log( existBus ? "Yes" : "No") log existBus ? "Yes" : "No" existBus "Yes" "No" String args[] args public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	}

} public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	}

} Main
import java.util.*;


public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		String input = sc.next();		
		
		char array[] = input.toCharArray();
		
		boolean existBus = false;
		if(array[0]!=array[1])
			existBus =true;
		else if(array[1]!=array[2])
			existBus =true;
		else if(array[0]!=array[2]) {
			existBus = true;
		}
				
		log( existBus ? "Yes" : "No");	
	}

}
