#include <bits/stdc++.h>

using namespace std;
#define fo(i,n) for(int i=0;i<n;i++)
#define parr(a,n) {\
fo(i,n) cout<<a[i]<<" ";\
cout<<"\n";\
}
#define pvec(v) {\
  tr(v,it) cout<<*it<<" ";\
  cout<<"\n";\
}
#define pmat(v) {\
  fo(i,v.size()){\
    fo(j,v[i].size()) cout<<v[i][j]<<" ";\
    nl;\
  }\
}


#define pl(i) cout<<i<<"\n"
#define nl pl("")
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << endl
#define all(v) v.begin(),v.end()
#define st(v) sort(all(v))
#define tr(c,i) for(auto it = c.begin(); it != c.end(); it++)
#define findInSet(v,key) (v.find(key) != v.end())
#define findInVec(v,key) (find(all(v),key)!=v.end())
#define sumArr(a,s,e,sum)(accumulate(a+s,a+e,sum))
#define um unordered_map
#define mod 1000000007
#define mem1(x) memset(x,1,sizeof(x))
#define mem0(x) memset(x,0,sizeof(x))
#define memn1(x) memset(x,-1,sizeof(x))
#define del(v,pos) v.erase(v.begin()+pos)
#define pp(i) cout<<"("<<i.first<<","<<i.second<<")    "
#define vpair(v){for(auto p:v) pp(p);nl;}

typedef long long ll;typedef pair<int,int> pii;typedef pair<ll,ll> pl;typedef vector<int> vi;typedef vector<ll> vl;
typedef vector<pii> vpii;typedef vector<vector<int>> vvi;typedef vector<vector<ll>> vvl;

template <typename T>
using vv = vector<vector<T>>;

template <typename T>
using v = vector<T>;

template<class x> x power(x a, x n) {
  if (n == 0)return 1; x b = powerm(a, n>>1) % mod;
  return (n & 1) ? ((b * b) % mod * a) % mod : (b * b) % mod;
}

void scanVector(vector<int> &v,int n){
  fo(i,n){int temp;cin>>temp;v.push_back(temp);}
}
void scanArr(int *arr,int n){
  fo(i,n) cin>>arr[i];
}
void p_stack(stack<int> s){if(s.empty()){nl;return;}int x = s.top();cout<<x<<" ";s.pop();p_stack(s);s.push(x);}

void c(int a,int b,int k){
	int t=a+b-1;string s;
	for(int i=0;i<b;++i)s+='1';
	for(int i=0;i<a;++i)s+='0';
	while((s[t-k]=='0'||s[t]=='1')&&t-k>=0)t--;
	if(t-k<=0&&k)cout<<"NO"<<endl; 
	else{
		cout<<"YES"<<endl<<s<<endl;
		swap(s[t],s[t-k]);cout<<s<<endl; 
	}
}
void BitGambit(){
  int a,b,k;cin>>b>>a>>k;
  // c(b,a,k);
  string s;
  fo(i,a){s+='1';}
  fo(i,b){s+='0';}
  int t = a+b-1;
  if(k==0){
    pl("Yes");
    pl(s);
    pl(s);
    return;
  }
  while((t-k>=0)&&(!(s[t]=='0' && s[t-k]=='1'))){
    t--;
  }
  if((t-k <= 0)){
    pl("No");return;
  }
  pl("Yes");
  pl(s);
  swap(s[t-k],s[t]);
  pl(s);
}
//#--------solve fn-------//
void solve(){
  BitGambit();
}
int main(){
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  int t=1;
  // cin>>t;
  // seive();
  while (t--){
    solve();
  }
}
// 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 