import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes");
     }
} import java.util.*; util.* java public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes");
     }
} Main public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes");
     } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes");
     } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String[]array=str.split(""); array str.split("") str.split str "" if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes"); array[0].equals(array[2]) && array[1].equals(array[2]) array[0].equals(array[2]) array[0].equals array[0] array 0 array[2] array 2 array[1].equals(array[2]) array[1].equals array[1] array 1 array[2] array 2 System.out.println("No") System.out.println System.out System System.out "No" 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 str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        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 str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes");
     }
} Main
import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[]array=str.split("");
        if(array[0].equals(array[2]) && array[1].equals(array[2]))
        System.out.println("No");
        else
        System.out.println("Yes");
     }
}