def w(el1, el2):
    """
    Returns weight based on residue pair
    """
    pair = el1 + el2
    return int(pair == 'AU' or
               pair == 'UA' or
               pair == 'GC' or
               pair == 'CG')