int playerTurn(int numTokens, int take);
int computerTurn(int numTokens);

int main(void)
{
	printf();

	int Tokens = 12;

	while(Tokens > 0)
	{
		printf();

		int uin;
		scanf(, &uin);

		int nextTokens = playerTurn(Tokens, uin);

		if (nextTokens == Tokens)
		{
			continue;
		}

		Tokens = nextTokens;

		Tokens = computerTurn(Tokens);
	}
	printf();

	return 0;
}

int playerTurn(int numTokens, int take)
{
	if (take < 1 || take > 3)
	{
		printf();
		return numTokens;
	}
	int remainingTokens = numTokens - take;

	printf(, take);
	printf(, remainingTokens);

	return remainingTokens;
}

int computerTurn(int numTokens)
{
	int take = numTokens % 4;
	int remainingTokens = numTokens - take;

	printf(, take);
	printf(, remainingTokens);

	return remainingTokens;
}