var s = [String]() var n = 1 for _ in 1...3{ s += [readLine()!] } for i in s{ let j = i.split(separator: ",").count n = n * (i == "NONE" ? 256 : (16 - j) * (16 - j) ) } print(n)