#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define vi vector <int>
#define endl "\n"
#define f(n) for(int i=0;i<n;i++)
#define vvi vector <vector<int> >
#define vii vector <pair<int,int> >
#define rep(i,a,b) for (int i=a;i<b;i++)
#define repD(i,a,b) for (int i=a;i>=b;i--)
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define gcd __gcd
#define init(i,k) memset(i,k,sizeof i)
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define setBits(x) __builtin_popcountll(x)
#define pii pair <int,int>
#define ff first
#define ss second
#define all(a) a.begin(),a.end()
#define N 1000005;
#define mod 1000000007
void solve()
{
    int a,b,k;
    cin>>a>>b>>k;
    vi v1,v2;
    if(k==0)
    {
        f(b)
        {
            v1.pb(1);
            v2.pb(1);
        }
        f(a)
        {
            v1.pb(0);
            v2.pb(0);
        }
        cout<<"Yes"<<endl;
        f(a+b)
        {
            cout<<v1[i];
        }
        cout<<endl;
        f(a+b)
        {
            cout<<v2[i];
        }
        cout<<endl;
        return ;
    }
    if(a==0 || b==0)
    {
        cout<<"No"<<endl;
        return ;
    }
    if(b==1 && k>0)
    {
        cout<<"No"<<endl;
        return ;
    }
    if(k>=a+b-1)
    {
        cout<<"No"<<endl;
        return;
    }
    else
    {
        v1.pb(1);
        v2.pb(1);
        v1.pb(1);
        v2.pb(0);
        a-=1;
        b-=2;
        for(int i=0;i<a;i++)
        {
            k--;
            //cout<<k<<endl;
            if(k==0)
            {
                v1.pb(0);
                v2.pb(1);
            }
            v1.pb(0);
            v2.pb(0);
        }
        //cout<<v1.size()<<endl;
        for(int i=0;i<b;i++)
        {
            k--;
            if(k==0)
            {
                v1.pb(0);
                v2.pb(1);
            }
            v1.pb(1);
            v2.pb(1);
            //cout<<"lol"<<endl;
        }
        if(k==1)
        {
            v1.pb(0);
            v2.pb(1);
        }   
        cout<<"Yes"<<endl;
        f(v1.size())
        {
            cout<<v1[i];
        }
        cout<<endl;
        f(v2.size())
        {
            cout<<v2[i];
        }
        cout<<endl;
    }
}
signed main()
{
    speed;
    int t=1;
    //cin>>t;
    while(t--)
    {
        solve();
    }
    return 0;
}