#include <bits/stdc++.h>
using namespace std;
const double eps(1e-8);
double a, b, m, vx, vy, vz;
double x, y, z;
int main() {
  scanf("%lf %lf %lf", &a, &b, &m);
  scanf("%lf %lf %lf", &vx, &vy, &vz);
  x = a / 2;
  y = m;
  z = 0;
  double t = y / fabs(vy);
  x = x + vx * t;
  z = z + vz * t;
  x = fmod(x, 2 * a);
  z = fmod(z, 2 * b);
  if (x < 0) x += 2 * a;
  if (z < 0) z += 2 * b;
  if (x > a) x = 2 * a - x;
  if (z > b) z = 2 * b - z;
  printf("%.10lf %.10lf\n", x, z);
}
