System.file.stdin|read(2e3)|replace("\s*(^| )(\s*#[^ ]*)*\s*","\\1")|print;