use proconio::{input, marker::Chars}; fn main() { input! { s: Chars, } let mut isin: bool = false; for c in s { if c == '#' { isin = !isin; } else if isin { print!("{}", c); } } println!(""); }