the total sum of integers entered on a new line must not exceed 'n'. if the sum of the input values exceeds 'n', output the word "Enough!, the last sum that does not exceed, and the number of values that do not exceed
def sum(n): s = 0 while True: a = int(input()) s += a if s > n: print("Enough!") print(a) print(s-a) break return s sum(100)