child_coro = "nothing"
function child_func()
print(2)
coroutine.yield()
print(2)
end
function parent_func()
print(1)
child_coro = coroutine.create(child_func)
coroutine.resume(child_coro)
coroutine.yield()
print(1)
end
parent_coro = coroutine.create(parent_func)
coroutine.resume(parent_coro)
coroutine.resume(child_coro)
Y2hpbGRfY29ybyA9ICJub3RoaW5nIgoKZnVuY3Rpb24gY2hpbGRfZnVuYygpCiAgICBwcmludCgyKQogICAgY29yb3V0aW5lLnlpZWxkKCkKICAgIHByaW50KDIpCmVuZAoKZnVuY3Rpb24gcGFyZW50X2Z1bmMoKQogICAgcHJpbnQoMSkKCiAgICBjaGlsZF9jb3JvID0gY29yb3V0aW5lLmNyZWF0ZShjaGlsZF9mdW5jKSAKICAgIGNvcm91dGluZS5yZXN1bWUoY2hpbGRfY29ybykKCiAgICBjb3JvdXRpbmUueWllbGQoKQogICAgcHJpbnQoMSkKZW5kCgpwYXJlbnRfY29ybyA9IGNvcm91dGluZS5jcmVhdGUocGFyZW50X2Z1bmMpCmNvcm91dGluZS5yZXN1bWUocGFyZW50X2Nvcm8pCgpjb3JvdXRpbmUucmVzdW1lKGNoaWxkX2Nvcm8pCgo=