import sequtils,strutils var M = stdin.readline.parseInt S = newSeq[float64](0) S2 = newSeqWith(M + 1, newSeq[float64](1 shl M)) for i in 0..<(1 shl M): S2[0][i] = 1 for m in 0..<(1 shl M): S.add(stdin.readline.parsefloat) for m in 0..