# Arup Guha
# 6/9/2023
# Alternate Donation Collector.

def main():

    # Get goal.
    goal = int(input("What is your goal for amount of money to raise?\n"))

    # Initial amount we have.
    money = 0

    # Person counter.
    cnt = 1

    # Keep on going until we have enough money.
    while money < goal:

        # Get this donation.
        curMoney = int(input("Person "+str(cnt)+", how much will you donate?\n"))

        # Only add if they are actually giving you money!
        if curMoney > 0:
            money += curMoney
        else:
            print("Don't steal my money!!!")

        # Advance to next person.
        cnt += 1

    # Print final tally.
    print("We collected",money,"dollars from",cnt-1,"people.")

# Run it.
main()