import os def balancedSum(arr): # Write your code here length = arr[0] target = arr[1:] target.sort() for i in range(length): if(target[:i] == target[i:]): return i if __name__ == '__main__': # fptr = open(os.environ['OUTPUT_PATH'], 'w') arr_count = int(input().strip()) arr = [] for _ in range(arr_count): arr_item = int(input().strip()) arr.append(arr_item) result = balancedSum(arr) fptr.write(str(result) + '\n') fptr.close()