// #1 \(*O*)/
#include "bits/stdc++.h"
using namespace std; 
#define pb push_back
typedef long long  ll; 
typedef pair<ll, ll> pll;
ll const N = 1e6 + 5, mod = 1e9 + 7, inf = 1e17, sq = 500; 
ll c[N], d[N];


int main () {
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);   
    ll a, b, k; cin >> a >> b >> k;
    if (b == 0) {
        if (k) cout << "No\n";
        else {
            cout << "Yes\n";
            for (int i = 0; i < a; i++) cout << 0;
            cout << '\n';
            for (int i = 0; i < a; i++) cout << 0;
            cout << '\n'; 
        }
    }
    else if (a == 0) {
        if (k) cout << "No\n";
        else {
            cout << "Yes\n";
            for (int i = 0; i < b; i++) cout << 1;
            cout << '\n';
            for (int i = 0; i < b; i++) cout << 1;
            cout << '\n'; 
        }
    }
    else if (b == 1) {
        if (k) cout << "No\n";
        else {
            cout << "Yes\n";
            ll n = a+b;
            cout << 1;
            for (int i = 0; i < n-1; i++) cout << 0;
            cout << '\n';
            cout << 1;
            for (int i = 0; i < n-1; i++) cout << 0;
            cout << '\n'; 
        }
    } 
    else if (k > a+b-2) cout << "No\n";
    else if (k==0) {
        cout << "Yes\n";
        ll n = a+b;
        for (int i = 0; i < n; i++) {
            if (i < b) cout << 1;
            else cout << 0;
        }
        cout << endl;
        for (int i = 0; i < n; i++) {
            if (i < b) cout << 1;
            else cout << 0;
        }
    }
    else {
        cout << "Yes\n";
        ll n = a+b;
        for (int i = 0; i < b; i++) {
            c[i] = 1;
        }
        for (int i = b; i < n; i++) {
            c[i] = 0;
        }
        for (int i = 0; i < b; i++) {
            d[i] = 1;
        }
        for (int i = b; i < n; i++) {
            d[i] = 0;
        }
        if (k < b) d[b-k] = 0, d[b] = 1; 
        else d[1] = 0, d[1+k] = 1;
        for (int i = 0; i < n; i++) cout << c[i];
        cout << '\n';
        for (int i = 0; i < n; i++) cout << d[i];
        cout << '\n'; 
    }
}

