#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4.1,sse4.2,avx,avx2,popcnt,tune=native")
#include <immintrin.h>
#include <emmintrin.h>
#pragma comment(linker, "/STACK:1024000000,1024000000") 
#pragma GCC optimize(2)
#include<bits/stdc++.h> 
#define ll long long
#define I128 __int128
#define ld long double
#define PB push_back
using namespace std;
const int MAXN=2e5+10,mod=998244353;//
const double PI=acos(-1); 
template<class T>inline void MAX(T &x,T y){if(y>x)x=y;}
template<class T>inline void MIN(T &x,T y){if(y<x)x=y;}
template<class T>inline void rd(T &x){x=0;char o,f=1;while(o=getchar(),o<48)if(o==45)f=-f;do x=(x<<3)+(x<<1)+(o^48);while(o=getchar(),o>47);x*=f;}
I128 ksm(I128 x,I128 y){I128 ans=1;while(y>0){if(y&1)ans=ans*x%mod;x=x*x%mod;y>>=1;}return ans;}
I128 GCD(I128 x,I128 y){if(x==1||y==1)return 1;if(y>x)swap(x,y);while(x%y!=0){x=x%y;swap(x,y);}return y;}
int main()
{
	int m,n,i,j,k,t;
	int a,b,c;
	rd(a),rd(b),rd(c);
	if(c==0)
	{
		printf("YES\n");
		for(i=1;i<=b;i++) printf("1");
		for(i=1;i<=a;i++) printf("0");
		printf("\n");
		for(i=1;i<=b;i++) printf("1");
		for(i=1;i<=a;i++) printf("0");
	}
	else if(c>(a+b-2)||a==0||b==1) cout<<"NO\n";
	else
	{
		printf("YES\n");
		b-=2;
		a--;
		int bb=b;
		printf("1");
		for(i=2;i<a+b+3;i++)
		{
			if(i==a+b+3-c) printf("1");
			else if(bb>0) bb--,printf("1");
			else printf("0");
		}
		printf("0\n");
		printf("1");
		bb=b;
		for(i=2;i<a+b+3;i++)
		{
			if(i==a+b+3-c) printf("0");
			else if(bb>0) bb--,printf("1");
			else printf("0");
		}
		printf("1\n");
	}
}