#include<bits/stdc++.h>
using namespace std;
const double g=10.0;
const double pi=3.1415926;
double h,v,theta;
double t,x,vx,vy;
int main(){
scanf("%lf%lf%lf",&h,&v,&theta);
theta=theta*pi/180.0;
vx=v*cos(theta);
vy=v*sin(theta);
t=2.0*v*sin(theta)/g;
x=v*v*cos(theta*2)/g;
printf("%.2lf\n%.2lf\n%.2lf\n%.2lf",vx,vy,t,x);
}