void processFile(char* name){

	int i,records;
	double diff,b1,b2;
	FILE* fp = fopen(name,);

	fscanf(fp,,&records);

	for(i=0;i<records;i++){
		fscanf(fp,,&b1,&b2);

		diff = fmod(b2-b1,360.0);
		printf(,b2,b1,(diff<-180)?diff+360:((diff>=180)?diff-360:diff));	
	}

	fclose(fp);
}

int main(int argC,char* argV[])
{
	double diff;

	if(argC < 2)
		printf(,argV[0]);
	else if(argC == 2)
		processFile(argV[1]);
	else{
		diff = fmod(atof(argV[2])-atof(argV[1]),360.0);
		printf(,argV[2],argV[1],(diff<-180)?diff+360:((diff>=180)?diff-360:diff));
	}

	return 0;
}