Here's the clean solution: python n = int(input()) scores = list(map(int, input().split())) unique_scores = sorted(set(scores), reverse=True) print(unique_scores[1]) Breaking it down: Read n (we don't need it since we split the line)
Read all scores into a list
set() removes duplicates
sorted(..., reverse=True) orders high to low
Index [] is the second element (runner-up) Here's the trick: removing duplicates first ensures [, , ] becomes [, ], making index correct.