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