//jai baba loknath
#include<bits/stdc++.h>
using namespace std;
typedef       long long int      ll;
#define       optimize           ios::sync_with_stdio(0);cin.tie(0);
#define       Yes                cout<<"Yes"<<endl;
#define       YES                cout<<"YES"<<endl;
#define       No                 cout<<"No"<<endl;
#define       NO                 cout<<"NO"<<endl;
int main(void)
{
   optimize
   ll t,n,m,k,a,b;
   string x,y;
   {
      cin>>a>>b>>k;
      if(k==0)
      {
         for(ll i=1;i<=b;i++)
            x+='1';
         for(ll i=1;i<=a;i++)
            x+='0';
         Yes
         cout<<x<<endl;
         cout<<x<<endl;
         return 0;
      }
      if(k+2>a+b || a<1 || b<2)
      {
         No
         return 0;
      }
      b-=2;
      a-=1;
      x="11";
      y="10";
      for(ll i=1;i<=k-1;i++)
      {
         //cout<<"in"<<endl;
         if(a>0)
         {
            x+='0';
            y+='0';
            a--;
         }
         else
         {
            x+='1';
            y+='1';
            b--;
         }
      }
      //cout<<a<<" "<<b<<endl;
      //cout<<x<<endl<<y<<endl;
      x+='0';
      y+='1';
      //cout<<x<<endl<<y<<endl;
      while(a>0)
      {
         x+='0';
         y+='0';
         a--;
      }
      while(b>0)
      {
         x+='1';
         y+='1';
         b--;
      }
      Yes
      cout<<x<<endl;
      cout<<y<<endl;
   }
   return 0;
}
