#include <bits/stdc++.h>
using namespace std;
int a, b, m, vx, vy, vz;
int main() {
  scanf("%d%d%d", &a, &b, &m);
  scanf("%d%d%d", &vx, &vy, &vz);
  double t = m * -1.0 / vy;
  double tx = a * 0.5 + t * vx;
  double tz = t * vz;
  while (tx > 2 * a) {
    tx -= 2 * a;
  }
  while (tz > 2 * b) {
    tz -= 2 * b;
  }
  while (tx < 0) {
    tx += 2 * a;
  }
  while (tz < 0) {
    tz += 2 * b;
  }
  if (tx > a) {
    tx = 2 * a - tx;
  }
  if (tz > b) {
    tz = 2 * b - tz;
  }
  printf("%f %f\n", tx, tz);
}
