#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, m;
  cin >> a >> b >> m;
  double vx, vy, vz;
  cin >> vx >> vy >> vz;
  double x = a / 2.0;
  double y = m;
  double z = 0;
  while (true) {
    double tx, ty, tz;
    ty = -y / vy;
    if (vx > 0)
      tx = (a - x) / vx;
    else if (vx < 0)
      tx = -x / vx;
    else
      tx = 1e100;
    if (vz > 0)
      tz = (b - z) / vz;
    else if (vz < 0)
      tz = -z / vz;
    else
      tz = 1e100;
    double t = min(tx, min(ty, tz));
    x += t * vx;
    z += t * vz;
    y += t * vy;
    if (abs(t - ty) < 1e-9) {
      cout << setprecision(12) << x << ' ' << z;
      break;
    } else if (abs(t - tx) < 1e-9) {
      vx *= -1;
    } else {
      vz *= -1;
    }
  }
  return 0;
}
