import sys sys.setrecursionlimit(1000000000) # # Solution Template for Soccer Match # # Australian Informatics Olympiad 2025 # # This file is provided to assist with reading of input and writing of output # for the problem. You may modify this file however you wish, or # you may choose not to use this file at all. # # N is the number of goals. N = 0 # G contains the goals. Note that the list starts from 0, and so the values are # G[0] to G[N-1]. G = [] # Read the value of N and the sequence of goals. N = int(input().strip()) G = list(map(int, input().strip().split())) # TODO: This is where you should compute your solution. You should output YES # or NO depending on whether there was any point during the game where Team 1 # had more goals than Team 2. An example of how to output YES is shown below. print("YES")