import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  } main {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char[] s = scanner.next().toCharArray(); s scanner.next().toCharArray() scanner.next().toCharArray scanner.next() scanner.next scanner for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    } int i = 1; int i = 1; i 1 i < 3 i 3 i++ i++ i {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    } {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    } if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      } s[i] != s[i - 1] s[i] s i s[i - 1] s i - 1 i 1 {
        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 public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] s = scanner.next().toCharArray();
    for (int i = 1; i < 3; i++) {
      if (s[i] != s[i - 1]) {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
}
