Guided practice
Train with Rena when you do not want a duel.
Hint-mode Rena coaches edge cases, syntax, and test discipline without turning the rep into a live match.
Practice with hints1# Starport Access Code2import sys34data = sys.stdin.read().split()5t = int(data[0])6ptr = 178for _ in range(t):9 n = int(data[ptr])10 s = data[ptr + 1]11 ptr += 21213 possible = False14 for i, ch in enumerate(s):15 if ch == "8" and n - i == 11:16 possible = True17 break1819 print("YES" if possible else "NO")