func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int a, b, x, i, j, k, n;     cin >> a >> b >> x;     string s;     n = a + b;     if (a >= b) {       s =  0 ;       a -= 1;     } else {       s =  1 ;       b -= 1;     }     for (i = 1; i < n; i++) {       if (s[i - 1] ==  0  && x > 1) {         s +=  1 ;         b -= 1;         x -= 1;       } else if (s[i - 1] ==  1  && x > 1) {         s +=  0 ;         a -= 1;         x -= 1;       } else if (x == 1 && a != 0 && b != 0) {         if (s[i - 1] ==  0  && a != 0) {           s +=  0 ;           a -= 1;         } else if (s[i - 1] ==  1  && b != 0) {           s +=  1 ;           b -= 1;         }       } else if (a == 0) {         s +=  1 ;         b -= 1;       } else if (b == 0) {         s +=  0 ;         a -= 1;       }     }     cout << s << endl;     return 0;   }   