import re


def is_dialog(text):
    """Checks if a text is a dialog"""
    if (
        (len(re.findall(r'—', text)) >= 2 and re.match(r'—', text))
        or
        (len(re.findall(r'–', text)) >= 2 and re.match(r'–', text))
        or
        (len(re.findall(r'−', text)) >= 2 and re.match(r'−', text))
        or
        (len(re.findall(r'-', text)) >= 2 and re.match(r'-', text))
    ):
        return 1
    else:
        return 0