fn main() -> Result<(), Box> { let lines = std::io::stdin().lines(); let mut max = 0; let mut elf = 0; for line in lines { let line = line?; if line.trim().is_empty() { max = max.max(elf); elf = 0; } else { elf += line.parse::()?; } } println!("{}", max); Ok(()) }