def parse_int(text: str) -> int:
    """
    Takes in a number in string form and returns that string in integer form
    and handles zeroes represented as dashes
    """
    text = text.strip()
    if text == '-':
        return 0
    else:
        return int(text.replace(',', ''))