sps = [] fl = True while fl: n = int(input()) sps.append(n) if (sps[0]>0 and sps[1]<0) or (sps[0]<0 and sps[1]>0): print("Знаки должны совпвдвть") sps.pop() continue if len(sps)==2: break print(sps)