procedure main() while write(read()) do if not read() then break end