import sequtils,strutils,strformat template times*(n:int,body) = (for _ in 0.." ,discardable.} proc scan(): int = var read = false while true: let k = getchar_unlocked() if k < '0' : if not read: continue return result = 10 * result + k.ord - '0'.ord read = true let n = scan() let QR = newSeqWith(^^n,newSeqWith(n+1,scan())) stdout.write "A=" if QR.allIt(it[^1] == 0): quit "⊥",0 if QR.allIt(it[^1] == 1): quit "⊤",0 var anss = newSeq[string]() for qr in QR: if qr[^1] == 0 : continue var ans = newSeq[string]() for j in 0..