#include<math.h>
typedef double d;d g(d x,d y,d a,d b){return(atan2(b-y,a-x))*180/3.14159;}

#include <stdio.h>

int main() {
	printf("%0.2f\n",g(5,5,5,-5));
	printf("%0.2f\n",g(5,-5,5,5));
	return 0;
}