def cigar_to_int(cigar):
    """Convert a simple CIGAR string to overlap int

    >>> cigar_to_int('71N')
    -71
    >>> cigar_to_int('3M')
    3
    """
    if cigar[-1] == 'N':
        return -int(cigar[:-1])
    return int(cigar[:-1])