#include <cmath>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

const double eps = 1e-10;
const double PI2 = 2 * acos(-1.0);

double x[4], y[4];
double ox[4], oy[4];
double R, t, w;

bool input() {
	for (int i=0; i<4; ++i) if (2 != scanf("%lf %lf", x+i, y+i)) return false;
	scanf("%lf %lf %lf", &R, &t, &w);
	w = w / 360 * PI2;
	return true;
}

double dis(const int a, const int b) {
	return sqrt((x[a] - x[b]) * (x[a] - x[b]) + (y[a] - y[b]) * (y[a] - y[b]));
}

void gao(int a, int b, int c, double off, double &xo, double &yo) {
	double xt, yt;
	double d(dis(a, b));

//	printf("-- %d %d %d %lf %lf %lf\n", a, b, c, off, xo, yo);
	off += R;

	d = dis(a, b);
	xt = (x[b] - x[a]) / d, yt = (y[b] - y[a]) / d;
	xo = x[a] + off * xt, yo = y[a] + off * yt;

	d = dis(a, c);
	xt = (x[c] - x[a]) / d, yt = (y[c] - y[a]) / d;
	xo = xo + xt * R, yo = yo + yt * R;
}

void flip(double sx, double sy, double xo, double yo) {
	for (int i=0; i<4; ++i) x[i] = x[i] + sx - xo, y[i] = y[i] + sy - yo;
}

void rotate(double sx, double sy, double w) {
	double c(cos(w)), s(sin(w));
	double tx, ty;

	for (int i=0; i<4; ++i) {
		tx = x[i], ty = y[i];
		x[i] = (tx - sx) * c - (ty - sy) * s + sx;
		y[i] = (tx - sx) * s + (ty - sy) * c + sy;
		if (fabs(x[i]) < eps) x[i] = 0;
		if (fabs(y[i]) < eps) y[i] = 0;
	}
}

int main() {
	int i, j, k;
	int cn(0);
	int src, dst, tt;
	double xo, yo;
	double sx, sy;
	double a, b;
	double d, T, off;
	double wo;

	while (input()) {
		gao(0, 1, 3, 0, sx, sy);
		a = dis(0, 1), b = dis(1, 2);
		T = 2 * (a + b - 4 * R);
		d = w * t * R;
		d = d - int(d / T) * T;
		if (d <= a - 2 * R) off = d, src = 0, dst = 1, tt = 3;
		else if (d <= a - 2 * R + b - 2 * R) off = d - (a - 2 * R), src = 1, dst = 2, tt = 0;
		else if (d <= a - 2 * R + b - 2 * R + a - 2 * R) off = d - (a - 2 * R + b - 2 * R), src = 2, dst = 3, tt = 1;
		else off = d - (a - 2 * R + b - 2 * R + a - 2 * R), src = 3, dst = 0, tt = 2;
		gao(src, dst, tt, off, xo, yo);
		wo = w * t;
		wo = wo - int(wo / PI2) * PI2;

	//	printf("---%lf %lf\n", d, wo);
	//	printf("flip: %lf %lf --> %lf %lf\n", sx, sy, xo, yo);
	//	flip(sx, sy, xo, yo);
		rotate(xo, yo, PI2-wo);
		flip(sx, sy, xo, yo);
	//	rotate(0, 0, PI2/4);
		printf("Case %d: ", ++cn);
		for (i=0; i<4; ++i) printf("%.3lf %.3lf%c", x[i], y[i], i==3?'\n':' ');
	}
	return 0;
}
