sc2 Random


# -*- coding: utf-8 -*-
import random
print(" **       *         **")
print("  (  )       maybe#5383                            " )
print(" **                 **")
print("      :")
print ()
print("1、               ,    (              )")
print ()
print("2、         ,       ,    ")
print ()
print("3、                              (      ♂ )")

zerg = ['  ','  ','  ','   ','  ','   ','   ','    ','  ','  (    )','  ','  ','  ','   ','  ']
protoss = ['   ','  ','    ','   ','      ','   ','      ','    ','   ','  ','   ','  ','     ','  ','  ','    ']
terran = ['    ','   ','   ','  ','  ( )','    ','  ','  ','   ','     ','    (  )','  ','   ','  ','     ']

dict = {'  ':'  ','   ':'  ', '   ':'  ', '    ':'   ', };

def Count(I,R):
    if I == '   ': return R.count('      ')+R.count('      ')
    if dict.get(I)!=None:  return R.count(dict.get(I));

def Start(C='Z',N='3'):
    if(N=='65535'):
        print ()
        print ()
        print ("▄︻┻┳═ ……      z p t ?")
        C = input().lower()#choice
        while(['z','p','t'].count(C)==0):
            print ("    ,    ")
            C = input().lower()#choice
        print ("▄︻┻┳═ ……       ")
        N = input()#number
        while(not N.isdigit()):
            print ("      10   ")
            N = input()
    N=int(N)
    CR = zerg;
    if C =="z":
        CR = zerg;
    elif C =="p":
        CR = protoss;
    elif C =="t":
        CR = terran;
    R= [];
    for i in range(N):
        now = random.choice(CR)
        while(R.count(now) != 0):
            now = random.choice(CR)
        R.append(now)
    for i in R:
        if Count(i,R) == 0:
            #print(R,' eroor');
            Start(C,N)
            return;
    print(R);

while True:
    Start('Z','65535');