#include<bits/stdc++.h>
#define GO ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef pair<int, int> pi;
const ll Mod = 1e9 + 7;
const ll INF = 1e9 + 1;
const ll N = 3e5 + 5, M = 26;



int main() {
	GO;
	int z, o, k;
	cin >> z >> o >> k;
	int n = z + o;
	string a(n,'0'), b(n,'0');
	a[0] = b[0] = '1';
	o--;
	if (k && ( k >= n - 1 || !z || !o)) {
		cout << "NO\n"; return 0;
	}
	if (o) {
		a[1] = '1';
		b[k + 1] = '1';
		o--;
	}
	for (int i = 0; i < n; i++)
		if (o && a[i] == '0' && b[i] == '0')
			a[i] = b[i] = '1', o--;
	cout << "YES\n" << a << '\n' << b << '\n';
	return 0;
}