#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k;
  double a, b, m;
  double vx, vy, vz;
  scanf("%lf %lf %lf", &a, &b, &m);
  scanf("%lf %lf %lf", &vx, &vy, &vz);
  vy = abs(vy);
  double t = m / vy;
  double x, z;
  x = t * vx;
  z = t * vz;
  if (x < 0) {
    x = abs(x);
    x += (3 * a) / 2;
  } else
    x += a / 2;
  while (x >= 2 * a) {
    x -= 2 * a;
  }
  while (z >= 2 * b) {
    z -= 2 * b;
  }
  if (x <= a)
    printf("%0.10lf ", x);
  else {
    x -= a;
    x = a - x;
    printf("%0.10lf ", x);
  }
  if (z <= b)
    printf("%0.10lf\n", z);
  else {
    z -= b;
    z = b - z;
    printf("%0.10lf\n", z);
  }
  return 0;
}
