#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double V, U, S, a, t;
cin >> V >> U >> S >> a;
t=S/(V+cos(a)*U)+S/(V-cos(a)*U);//Сумма времени полета от A к B и обратно
cout << (U>=V ? 1/tan(0) : t);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKIAppbnQgbWFpbigpCnsKICAgIGRvdWJsZSBWLCBVLCBTLCBhLCB0OwogICAgCiAgICBjaW4gPj4gViA+PiBVID4+IFMgPj4gYTsKICAgIAogICAgdD1TLyhWK2NvcyhhKSpVKStTLyhWLWNvcyhhKSpVKTsvL9Ch0YPQvNC80LAg0LLRgNC10LzQtdC90Lgg0L/QvtC70LXRgtCwINC+0YIgQSDQuiBCINC4INC+0LHRgNCw0YLQvdC+CiAgICAKCWNvdXQgPDwgKFU+PVYgPyAxL3RhbigwKSA6IHQpOwoKICAgIHJldHVybiAwOwp9