#include using namespace std; int main() { int N, M, K; cin >> N >> M >> K; if (K == 0) { if (N != 0 && M != 0) cout << -1 << "\n"; cout << string(N, '0') + string(M, '1') << "\n"; return 0; } int x = (K + 2) / 2, y = (K + 1) / 2; string s, t; vector v(K + 1, 1), w(K + 1, 1); if (x <= N && y <= M) { int n = x, m = y; v[0] += N - n; if (K & 1) v[K] += M - m; else v[K - 1] += M - m; for (int i = 0; i < v.size(); i++) { if (i & 1) s += string(v[i], '1'); else s += string(v[i], '0'); } } if (x <= M && y <= N) { int n = y, m = x; w[1] += N - n; if (K & 1) w[K - 1] += M - m; else w[K] += M - m; for (int i = 0; i < w.size(); i++) { if (i & 1) t += string(w[i], '0'); else t += string(w[i], '1'); } } if (s == "" && t == "") cout << -1 << "\n"; else if (s == "") cout << t << "\n"; else if (t == "") cout << s << "\n"; else cout << min(s, t) << "\n"; return 0; }