#include <bits/stdc++.h>
using namespace std;
const int INF = 1000 * 1000 * 1000;
const double PI = acos(-1.0);
const double EPS = (1e-6);
int a, b, m, vx, vy, vz;
double x0, yo, z0;
int main() {
  cin >> a >> b >> m >> vx >> vy >> vz;
  x0 = a / 2.0;
  yo = m + 0.0;
  z0 = 0.0;
  double t = -yo / vy;
  double tx = t;
  while (true) {
    double xx = x0 + tx * vx;
    if (0 <= xx && xx <= a) {
      x0 = xx;
      break;
    } else if (0 > xx) {
      double tx1 = -x0 / vx;
      vx = -vx;
      if (tx1 >= 0)
        tx = tx - tx1;
      else
        tx = tx + tx1;
      x0 = 0;
    } else {
      double tx1 = (a - x0) / vx;
      vx = -vx;
      if (tx1 >= 0)
        tx = tx - tx1;
      else
        tx = tx + tx1;
      x0 = a;
    }
  }
  double tz = t;
  while (true) {
    double zz = z0 + tz * vz;
    if (0 <= zz && zz <= b) {
      z0 = zz;
      break;
    } else if (0 > zz) {
      double tz1 = -z0 / vz;
      vz = -vz;
      if (tz1 >= 0)
        tz = tz - tz1;
      else
        tz = tz + tz1;
      z0 = 0;
    } else {
      double tz1 = (b - z0) / vz;
      vz = -vz;
      if (tz1 >= 0)
        tz = tz - tz1;
      else
        tz = tz + tz1;
      z0 = b;
    }
  }
  printf("%.6f %.6f\n", x0, z0);
  return 0;
}
