float mean(float* arr,int size){
	int i = 0;
	float sum = 0;

	while(i != size)
		sum += arr[i++];

	return sum/size;
}

float variance(float reference,float* arr, int size){
	int i=0;
	float* newArr = (float*)malloc(size*sizeof(float));

	for(;i<size;i++)
		newArr[i] = (reference - arr[i])*(reference - arr[i]);

	return mean(newArr,size);
}

float* extractData(char* str, int *len){
	float* arr;
	int i=0,count = 1;
	char* token;

	while(str[i]!=00){
		if(str[i++]==',')
			count++;
	}

	arr = (float*)malloc(count*sizeof(float));
	*len = count;

	token = strtok(str,);

	i = 0;

	while(token!=NULL){
		arr[i++] = atof(token);
		token = strtok(NULL,);
	}

	return arr;
}

int main(int argC,char* argV[])
{
	float* arr,reference,meanVal;
	int len;
	if(argC!=3)
		printf();
	else{
		arr = extractData(argV[2],&len);

		reference = atof(argV[1]);

		meanVal = mean(arr,len);

		printf(,variance(reference,arr,len));
		printf(,(reference - meanVal)*(reference - meanVal));
		printf(,variance(meanVal,arr,len));
	}

	return 0;
}