def func(): n = int(input()) nums = list(map(lambda x: int(x), input().split(' '))) t = int(input()) if sum(nums) <= t: # print(-1) return -1 nums.sort() if nums[0] * n > t: # print(t // len(nums)) return t // n ans = 1 cur_sum = ...