#include <bits/stdc++.h>
using namespace std;
int A, B, M;
int Vx, Vy, Vz;
double x, y, z;
double disX, disY, disZ;
double t;
const double eps = 1e-6;
int main() {
  scanf("%d%d%d", &A, &B, &M);
  scanf("%d%d%d", &Vx, &Vy, &Vz);
  x = 0.5 * A;
  y = (double)M;
  while (abs(y) > eps) {
    disX = ((Vx > 0.0) ? (double)A - x : x);
    disY = y;
    disZ = ((Vz > 0.0) ? (double)B - z : z);
    t = min(min(abs(disX / Vx), abs(disY / Vy)), abs(disZ / Vz));
    x = x + Vx * t;
    y = y + Vy * t;
    z = z + Vz * t;
    if (abs(x) <= eps || abs(x - A) <= eps) Vx *= -1;
    if (abs(y) <= eps || abs(y - M) <= eps) Vy *= -1;
    if (abs(z) <= eps || abs(z - B) <= eps) Vz *= -1;
  }
  printf("%.15lf %.15lf\n", x, z);
  return 0;
}
