import io
import re


def parse(stdin: io.TextIOWrapper) -> list:
    """Parse a raw passport input."""

    return [
        dict(
            x.split(":")
            for x in re.split(r"[\n ]", y)
        )
        for y in stdin.read().strip().split("\n\n")
    ]