using System;
public class MainClass
{
public static void Main()
int a = Convert.ToInt32(Console.ReadLine());
int b = a / 100;
int c = a / 10 % 10;
int d = a % 10;
Console.WriteLine (b);
Console.WriteLine (c);
Console.WriteLine (d);
if (b==c && c == d)
Console.WriteLine("No");
}
else
Console.WriteLine("Yes");