    #include<bits/stdc++.h>
    //#include <ext/pb_ds/assoc_container.hpp>
    //#include <ext/pb_ds/tree_policy.hpp>
    #define ll long long
    #define pb push_back
    #define mod 1000000007
    #define ff first
    #define ss second
    #define pi 3.1415926535
    #define endl '\n'
    using namespace std;
    struct custom {
        static uint64_t splitmix64(uint64_t x)
        {
            x += 0x9e3779b97f4a7c15;
            x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
            x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
            return x ^ (x >> 31);
        }
        size_t operator()(uint64_t x) const {
            static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
            return splitmix64(x + FIXED_RANDOM);
        }
    };
    //using namespace __gnu_pbds;
    //typedef tree<ll,null_type,less_equal<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;
    const ll inf=4e10;
    /*ll power(ll x,ll y)
    {
        ll res=1;
        while(y>0)
        {
            if(y%2==1)
                res=(res*x)%mod;
            x=(x*x)%mod;
            y=(y>>1);
        }
        return res;
    }*/
    int main()
    {
        ios_base::sync_with_stdio(false);
        cin.tie(0);
        cout.tie(0);
        ll a,b,c,i,x,y,k,r,d;
        cin>>a>>b>>k;
        string s,s1;
        if((b==1|| a==0)&& k!=0)
        {
            cout<<"No"<<endl;
            return 0;
        }
        if(b==1 || a==0 || k==0)
        {
            for(i=1;i<=b;i++)
            {
                s.pb('1');
                s1.pb('1');
            }
            for(i=1;i<=a;i++)
            {
                s.pb('0');
                s1.pb('0');
            }
            cout<<"Yes"<<endl;
            cout<<s<<endl;
            cout<<s1<<endl;
            return 0;
        }
        c=a+b;
        c=c-b+max(b-2,0LL);
        if(c<k)
        {
            cout<<"No"<<endl;
            return 0;
        }
        cout<<"Yes"<<endl;
        for(i=1;i<=b;i++)s.pb('1');
        for(i=1;i<=a;i++)s.pb('0');
        s1.pb('1');
        s1.pb('0');
        for(i=1;i<=b-2;i++)s1.pb('1');
        for(i=1;i<=a-1;i++)s1.pb('0');
        s1.pb('1');
        for(i=1;i<b-1;i++)
        {
            if(c==k)break;
            swap(s1[i],s1[i+1]);
            c--;
        }
        for(i=s1.size()-1;i>b-1;i--)
        {
            if(c==k)break;
            swap(s1[i],s1[i-1]);
            c--;
        }
        cout<<s<<endl;
        cout<<s1<<endl;
    }
