#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N=1e9+10;
int n,a[N],t;
signed main()
{
scanf("%lld",&n);
for(int i=1;i<=n;i++) scanf("%lld",&a[i]);
scanf("%lld",&t);
for(int i=1;i<=n;i++)
{
for(int j=i+1;j<=n;j++)
{
if(a[i]+a[j]==t)
{
printf("Yes\n");
return 0;
}
}
}
printf("No\n");
return 0;
}