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

#define INF 1234567890
#define ll long long

int Z, O, K, N;

int main()
{
	ios::sync_with_stdio(0); cin.tie(0);
	cin.exceptions(ios::badbit | ios::failbit);
	cin >> Z >> O >> K;
	N = Z+O;
	if (K == 0) // hacked case : 1 - 1 = 0
	{
		cout << "Yes\n";
		cout << string(O, '1') << string(Z, '0') << "\n";
		cout << string(O, '1') << string(Z, '0') << "\n";
		return 0;
	}
	if (K > N-2) // 011111 은 불가능
	{
		cout << "No\n";
		return 0;
	}
	if (O == 1) // 100000 - 100000
	{
		if (K == 0)
		{
			cout << "Yes\n";
			cout << "1" << string(N-1, '0') << "\n";
			cout << "1" << string(N-1, '0') << "\n";
		}
		else cout << "No\n";
		return 0;
	}
	if (O == N) // 111111 - 111111
	{
		if (K == 0)
		{
			cout << "Yes\n";
			cout << string(N, '1') << "\n";
			cout << string(N, '1') << "\n";
		}
		else cout << "No\n";
		return 0;
	}
	// 0 <= K <= N-2 && 1 <= O <= N-1

	cout << "Yes\n"; // 110000 - 100001
	cout << string(O, '1') << string(Z, '0') << "\n";
	if (K <= O-1)
	{
		cout << "1" << string(O-1-K, '1') << "0" << string(K, '1') << string(Z-1, '0') << "\n";
	}
	else
	{
		int gap = K-(O-1);
		cout << "1" << "0" << string(O-2, '1') << string(gap, '0') << "1" << string(Z-1-gap, '0') << "\n";
	}
	return 0;
}