fn parse_input(input: &str) -> HashMap<String, Gate>