from typing import List


def parse_input(raw_input: str) -> List[List[int]]:
  """Parses input into a heightmap."""
  return [[int(c) for c in line.strip()] for line in
          raw_input.strip().splitlines()]