#include <iostream>
using namespace std;

int getCoin()
{
	int coin;
	cout<<"Enter value  your coin = ";
	cin>> coin;
	return coin;
}

void calculateCoin (int &totalCoin, int coin)
{
	 
	totalCoin= totalCoin + coin;
	cout<<"Total amount = "<< totalCoin << endl;
	
}

int calculateBalance(int totalcoin)
{
	int bal;
	bal=totalcoin-119;
	return bal;
}


int main()
{
	int c;
	int total=0, price=120;
	do {	
		c = getCoin();
		calculateCoin(total,c);
	}while (total<price);
	
	if (calculateBalance(total)>=0)
		cout<<"Please Collect Your Balance"<<calculateBalance(total)<<endl;
	
	else
		cout<<"TERIMA KASIH"<<endl;
	
	return 0;
}
