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