#include<bits/stdc++.h> 
using namespace std;
#define int long long int 
#define endl '\n'

void move(string &str1, string &str2, int &a, int &b)
{
    if(b > 0) {
        b--;
        str1.push_back('1');
        str2.push_back('1');
    }
    else {
        a--;
        str1.push_back('0');
        str2.push_back('0');
    }
}

void ETA()
{
    int a, b, k;
    cin >> a >> b >> k;

    if(a==0 and b==1) {
        cout << "YES" << endl << 1 << endl << 1 << endl;
        return;
    }

    if(k > a+b-2) {
        cout << "No" << endl;
        return;
    }

    string str1 = "1", str2 = "1";
    b--;

    if(k > 0) {
        if(b<=0 or a<=0) {
            cout << "No" << endl;
            return;
        }

        a--;  b--;
        str1.push_back('1');
        str2.push_back('0');
    }

    while(k > 1)  {
        move(str1, str2, a, b);
        k--;
    }

    if(k > 0) {
        str1.push_back('0');
        str2.push_back('1');
    }
    
    while(a>0 or b>0)
        move(str1, str2, a, b);

    cout << "Yes" << endl << str1 << endl << str2 << endl;
}

int32_t main() 
{ 
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
    
    int t = 1;
    // cin >> t;
    while(t--)
        ETA();
    
    return 0; 
}   