#include<iostream>
using namespace std;
int c1,c2,n;
int w[20];//用来存集装箱重量的
int s[100]={0},cnt=0;//装答案的
int sum;//用来表示集装箱总重的
int weight;//即时计算集装箱重量和
void search(int);//递归搜索
void output();
int main()
{
int i;
while(1)
{
cin>>c1>>c2>>n;
if(c1==0&&c2==0&&n==0)
{
break;
}
else
{
for(i=1;i<=n;i++)
{
cin>>w[i];
sum=sum+w[i];
}
search(1);
weight=0;
sum=0;
cnt++;
}
}
output();
return(0);
}
void search(int m)
{
int i;
if(m==n+1)
{
if(weight<=c1&&(sum-weight)<=c2)
{
s[cnt]=1;
}
}
else
{
for(i=0;i<=1;i++)
{
if(weight+i*w[m]<=c1)
{
weight=weight+i*w[m];
search(m+1);
weight=weight-i*w[m];
}
}
}
}
void output()
{
int i;
for(i=0;i<=cnt-1;i++)
{
if(s[i]==1)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"No"<<endl;
}
}
}