#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll N=201000 ;
const ll mod=998244353LL;
int suff[N];
string s,t;
int32_t main()
{
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    int a,b,k;
    cin>>a>>b>>k;
    int at=0;
    s.push_back('1');
    t.push_back('1');
    b--;
    if(k!=0)
    {
        if(a+b-1<k || b==0 || a==0)
        {
            cout<<"No\n";
            return 0;
        }     
        s.push_back('1');
        t.push_back('0');
        at++;
        a--;
        b--;
        while(at<k && b>0)
        {
            s.push_back('1');
            t.push_back('1');
            b--;
            at++;
        }
        while(at<k && a>0)
        {
            s.push_back('0');
            t.push_back('0');
            a--;
            at++;
        }
        s.push_back('0');
        t.push_back('1');
    }
    while(b--)
    {
        s.push_back('1');
        t.push_back('1');
    }
    while(a--)
    {
        s.push_back('0');
        t.push_back('0');
    }
    cout<<"Yes\n";
    cout<<s<<"\n";
    cout<<t<<"\n";
    return 0;
}