#include <bits/stdc++.h>
using namespace std;


int main() {

    int a, b, k;
    cin >> a >> b >> k;
    
    string x(a + b, '#'), y(a + b, '#');
    
    x.back() = y.back() = '1';
    b--;
    
    if(k != 0){
        x[k] = '1';
        y[k] = '0';
        
        x[0] = '0';
        y[0] = '1';
        
        b--;
        a--;
    }
    
    
    
    bool ok = true;
    for(int i = 0; i < x.size(); i++) {
        if(x[i] == '#' && b > 0){
            x[i] = y[i] = '1';
            b--;
        }
        else if(x[i] == '#' && a > 0){
            x[i] = y[i] = '0';
            a--;
        }
        else if(x[i] == '#'){
            ok = false;
        }
    }
    
    
    if(ok && a == 0 && b == 0){
        reverse(x.begin(), x.end());
        reverse(y.begin(), y.end());
        
        cout << "Yes\n";
        cout << x << "\n" << y << "\n";
    }
    else{
        cout << "No\n";
    }
    

    return 0;
}