#include<bits/stdc++.h>
#define R register
#define I inline
#define ll long long
#define ull unsigned long long
#define LL __int128
#define db double
using namespace std;
#define pii pair<int,int>
#define mp(x,y) make_pair(x,y)
#define piii pair<pair<int,int>,int>
#define mp3(x,y,z) make_pair(make_pair(x,y),z)
#define fi first.first
#define se first.second
#define th second
#define putint(x) printf("%d\n",x)
#define putll(x) printf("%lld\n",x)
#define putull(x) printf("%llu\n",x)
#define lowbit(x) ((x)&(-(x)))
#define inf (0x7fffffff)
#define INF (1e18)
#define eps (1e-8)
I int read()
{
	char ch=getchar();
	int res=0,flag=1;
	while(ch<'0'||ch>'9')
	{
		if(ch=='-')
			flag=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9')
	{
		res=res*10+ch-'0';
		ch=getchar();
	}
	return res*flag;
}
int a,b,k;
int main()
{
	a=read();
	b=read();
	k=read();
	if(b==1)
	{
		if(k==0)
		{
			puts("YES");
			cout<<"1";
			for(R int i=1;i<=a;++i)
				cout<<"0";
			puts("");
			cout<<"1";
			for(R int i=1;i<=a;++i)
				cout<<"0";
			puts("");
			return 0;
		}
		else
		{
			puts("NO");
			return 0;
		}
	}
	if(a==0)
	{
		if(k==0)
		{
			puts("YES");
			for(R int i=1;i<=b;++i)
				cout<<"1";
			puts("");
			for(R int i=1;i<=b;++i)
				cout<<"1";
			puts("");
		}
		else
			puts("NO");
		return 0;
	}
	if(k<a+b-1)
	{
		puts("YES");
		int pos1=a+b,pos2=a+b-k,cnt=0;
		for(R int i=1;i<=a+b;++i)
		{
			if(i==pos2)
				cout<<1,++cnt;
			else if(cnt<b-(i<pos2))
				cout<<1,++cnt;
			else
				cout<<0;
		}
		puts("");
		cnt=0;
		for(R int i=1;i<=a+b;++i)
		{
			if(i==pos2&&pos1!=pos2)
			{
				cout<<0;
				continue;
			}
			if(i==pos1)
				cout<<1,++cnt;
			else if(cnt<b-1)
				cout<<1,++cnt;
			else
				cout<<0;
		}
		puts("");
	}
	else
		puts("NO");
    return 0;
}