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

using namespace std;

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0), cout.tie(0);

	int a, b, k; cin >> a >> b >> k;

	if (!k) {
		cout << "Yes" << endl;
		for (int i = 0; i < b; i++) cout << 1;
		for (int i = 0; i < a; i++) cout << 0; cout << endl;
		for (int i = 0; i < b; i++) cout << 1;
		for (int i = 0; i < a; i++) cout << 0; cout << endl;

		return 0;
	}

	if (a && b > 1 && k < a + b - 1) {
		cout << "Yes" << endl;

		vector<int> vec;
		for (int i = 0; i < a - 1; i++) vec.push_back(0);
		for (int i = 0; i < b - 2; i++) vec.push_back(1);

		cout << 1 << 1;
		for (int i = 0; i < k - 1; i++) cout << vec[i];
		cout << 0;
		for (int i = k - 1; i < vec.size(); i++) cout << vec[i]; cout << endl;

		cout << 1 << 0;
		for (int i = 0; i < k - 1; i++) cout << vec[i];
		cout << 1;
		for (int i = k - 1; i < vec.size(); i++) cout << vec[i]; cout << endl;

		return 0;
	}

	cout << "No" << endl;

	return 0;
}
