
import java.io.*;
import java.util.*;
public class Main {
	public static void main (String[] args) {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	}
} Main public static void main (String[] args) {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	} main {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	} Scanner s=new Scanner(System.in); s new Scanner(System.in) String ss=s.next(); ss s.next() s.next s int c=1; c 1 for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		} int i=1; int i=1; i 1 i<ss.length() i ss.length() ss.length ss i++ i++ i {
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		} {
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		} if(ss.charAt(i)!=ss.charAt(i-1))
		    c++; ss.charAt(i)!=ss.charAt(i-1) ss.charAt(i) ss.charAt ss i ss.charAt(i-1) ss.charAt ss i-1 i 1 c++ c if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No"); c>1 c 1 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main (String[] args) {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	}
} public class Main {
	public static void main (String[] args) {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	}
} Main

import java.io.*;
import java.util.*;
public class Main {
	public static void main (String[] args) {
		Scanner s=new Scanner(System.in);
		String ss=s.next();
		int c=1;
		for(int i=1;i<ss.length();i++){
		    if(ss.charAt(i)!=ss.charAt(i-1))
		    c++;
		}
		if(c>1)
		System.out.println("Yes");
		else
		System.out.println("No");
	    
	}
}