def crt2(m, v, mm, e, s, symmetric=False):
 result = gf_crt2(v, m, mm, e, s, ZZ)
 if symmetric:
  return (symmetric_residue(result, mm), mm)
 return (result, mm)

def crt2 ( m , v , mm , e , s , symmetric = False ) : result = gf_crt2 ( v , m , mm , e , s , ZZ ) if symmetric : return ( symmetric_residue ( result , mm ) , mm ) return ( result , mm )
second part of chinese remainder theorem .