/* you can see `0a` of end-of-line, which is ascii code of '\n' */
#include <stdio.h>
#include <string.h>
int main(void)
{
char buf;
while (1)
{
if (buf == 'q')
break;
putchar((buf
== '\n') ? '\n' : ' '); }
return 0;
}
LyogeW91IGNhbiBzZWUgYDBhYCBvZiBlbmQtb2YtbGluZSwgd2hpY2ggaXMgYXNjaWkgY29kZSBvZiAnXG4nICovCgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKaW50IG1haW4odm9pZCkKewoJY2hhciBidWY7CgoJd2hpbGUgKDEpCgl7CgkJc2NhbmYoIiVjIiwgJmJ1Zik7CgkJaWYgKGJ1ZiA9PSAncScpCgkJCWJyZWFrOwoKCQlwcmludGYoIiUwMngiLCBidWYpOwoKCQlwdXRjaGFyKChidWYgPT0gJ1xuJykgPyAnXG4nIDogJyAnKTsKCX0KCXJldHVybiAwOwp9Cg==