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

#define  ll                  long long
#define  inf                  1e18   
#define  memset(a , b)       memset((a) , (b) , sizeof(a))
#define  mod                 1000000007
#define  rep(i , n)          for((i) = 0 ; (i) < n ; (i)++)
#define  N                   200005       

  ll t , d , ct  , q, ans , l ,m , r , n , mx , mn , i, j , k , x , y , z , s  ;

  char ch ;           string ss = "" ,  str = "" ;

  ll a[N] ,  b[N] ;     


 void dbg(ll x, ll y = 0, ll z = 0, ll a = 0)
  { cout << "Dbg: " << x << " " << y << " " << z << " " << a << "\n";   } 


 /*---------------------------------------Main Code----------------------------------------------------- */      



int main(){                    

       ios_base::sync_with_stdio (false), 
        cin.tie(nullptr);       


 
      cin >> x >> y >> k;
 
      if (y == 1)
      {
          if (k)
          {
              cout << "No\n";
              return 0;
          }
          cout << "Yes\n";
 
          cout << "1";
          rep(i, x)
                  cout
              << "0";
          cout << "\n";
 
          cout << "1";
          rep(i, x)
                  cout
              << "0";
          return 0;
      }
 
 
      if (!x)
      {
          if (k)
          {
              cout << "No\n";
              return 0;
          }
 
          cout << "Yes\n";
          rep(i, y)
                  cout
              << "1";
          cout << "\n";
          rep(i, y)
                  cout
              << "1";
          return 0;
      }

      if (k > x + y - 2)
      {
          cout << "No";
          return 0;
      }

      cout << "Yes\n";

      rep(i, y)
              cout
          << "1";
      rep(i, x)
              cout
          << "0";

      cout << "\n";

      if (k <= x)
      {
          rep(i, y - 1)
                  cout
              << "1";
          rep(i, k)
                  cout
              << "0",
              x--;

          cout << "1";

          rep(i, x)
                  cout
              << "0";

          return 0;
      }

      k -= x;

      rep(i, y  - k -1)
              cout
          << "1";

      cout << "0";

      y -= (y -k-  1);

      rep(i, y - 1)
              cout
          << "1";

      rep(i, x - 1)
              cout
          << "0";

      cout << "1";

      return 0;
}
