#include <iostream>
#define _USE_MATH_DEFINES 
#include <math.h>
 
using namespace std;
 
struct Vector2
{
        double x, y;
};
 
double angle(Vector2 a, Vector2 b) // oblicz kąt pomiędzy wektorami
{
        return acos ( (a.x * b.x + a.y * b.y) / ( sqrt( pow(a.x, 2) + pow(a.y, 2) ) *  sqrt( pow(b.x, 2) + pow(b.y, 2) )) );;
}

double deg(double rad) // Zamień radiany na stopnie
{
	return rad/M_PI*180;
}
 
int main()
{
	Vector2 a, b;
	while(cin>>a.x>>a.y>>b.x>>b.y)
	{

		cout<<deg(angle(a, b))<<endl; // Wypisz kąt pomiędzy wektorami
	}
 
	return 0;
}