using System;
using System.Linq;
public class Program
{
public static void Main()
int[] results = new int[]{54, 90, 74, 56, 88, 86, 54};
int need = int.Parse(Console.ReadLine());
int repeat = 0;
for (int i = 0; i < results.Length; i++)
if(results[i] == need)
repeat++;
}
if(repeat > 1)
Console.WriteLine("Yes");
else
Console.WriteLine("No");