using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTATest
{
class Program
{
static List<int> array = new List<int>(1005);
staticvoid Main(string[] args)
{
for (int i = 0; i <= 1004; i++)
array.Add(0);
int n =Int32.Parse(Console.ReadLine());
String str = Console.ReadLine();
var input = str.Split(' ');
foreach (var iter in input)
{
array[Int32.Parse(iter)]++;
}
bool flag = false;
for (int i = 0; i < 1000;i++ )
{
if (array[i] > 0 && array[i + 1] > 0 && array[i + 2] > 0)
{
Console.WriteLine("Yes");
flag = true;
break;
}
}
if (!flag)
Console.WriteLine("No");
Console.Read();
}
}
}