let N = Int(readLine()!)! var numArr = [0,0,0,0,0,0,0,0,0,0] for _ in 1...N{ let hintArr = readLine()!.split(separator:" ") for i in hintArr[0...3]{ if hintArr[4] == "YES"{ numArr[Int(i)!] += 1 }else{ numArr[Int(i)!] -= 1 } } } let max = numArr.max()! let index = numArr.firstIndex(of: max)! print(index)