def _split_gcd(*a):
 g = a[0]
 b1 = [g]
 b2 = []
 for x in a[1:]:
  g1 = gcd(g, x)
  if (g1 == 1):
   b2.append(x)
  else:
   g = g1
   b1.append(x)
 return (g, b1, b2)

def _split_gcd ( * a ) : g = a [ 0 ] b1 = [ g ] b2 = [ ] for x in a [ 1 : ] : g1 = gcd ( g , x ) if ( g1 == 1 ) : b2 . append ( x ) else : g = g1 b1 . append ( x ) return ( g , b1 , b2 )
split the list of integers a into a list of integers .