/////////////////////////////////////
//2350896 2010-11-16 19:50:24 Accepted 1852 C 0 160 VRS
//1852 桌球碰撞 水题
#include<stdio.h>
#include<math.h>
#define pi 3.1415926
int main()
{
int row,col,rowTime,colTime,time;
double rowSum,colSum;
double angle,velocity;
while(scanf("%d %d %d %d %d",&row,&col,&time,&rowTime,&colTime)!=EOF && !(row==0 && col==0 && rowTime==0 && colTime==0 && time==0))
{
rowSum=row*rowTime;
colSum=col*colTime;
angle=atan((double)colSum/(double)rowSum)*180/pi;
velocity=sqrt(pow(rowSum,2)+pow(colSum,2))/time;
printf("%.2lf %.2lf\n", angle, velocity);
}
return 0;
}